add ResponseArrayPool#3104
Conversation
|
The change - static StackExchange.Redis.Lease<T>.Create(int length, bool clear = true) -> StackExchange.Redis.Lease<T>!
+static StackExchange.Redis.Lease<T>.Create(int length, bool clear = true, System.Buffers.ArrayPool<T>? pool = null) -> StackExchange.Redis.Lease<T>!is a hard "nope" - that would smash binary compatibility; at the minimum, we would need to add this via an overload. However, I wonder whether we should instead allow the least to be backed by a union of |
perfect! |
|
I have updated Lease, but I am having trouble passing the IMemoryOwner object to the ResultProcessor<Lease> |
|
I can look tomorrow, but I assume it would be accessing the muxer via the connection to get the options, to pass into a new overload of AsLease |
|
ok, I have a plan here; merging this into my branch and evolving |
13cc1b7
into
StackExchange:marc/cyclebufferpool
|
new approach summary (please weigh in here!)
Does that cover all bases? |
I like. But I have a few comments:
-var memoryPool = BridgeCouldBeNull?.Multiplexer.RawConfig.ResponseMemoryPool ?? MemoryPool<byte>.Shared;
+var memoryPool = BridgeCouldBeNull?.Multiplexer.RawConfig.RequestBufferPool ?? MemoryPool<byte>.Shared;
|
|
1 yep, typo, thanks 2 I'll have to read when at a computer, my brain can't parse in isolation |
OK. I think the current changes are sufficient for a release. When can we expect a new version? |
No description provided.