[#20] Optimize memory usage #22
No reviewers
Labels
No labels
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-csharp#22
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "PavelGrossSpb/frostfs-sdk-csharp:misc/memory_optimization"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Provide custom buffer and use ArrayPool
Signed-off-by: Pavel Gross p.gross@yando.com
@ -9,3 +10,4 @@
public class ClientEnvironment(Client client, ECDsa key, OwnerId owner, GrpcChannel channel, ModelsV2.Version version) : IDisposable
{
private ArrayPool<byte> _arrayPool;
Purely out of interest, where can I find implementation details of this pool?
I have found only abstract class
5535e31a71/src/libraries/System.Private.CoreLib/src/System/Buffers/ArrayPool.cs
ab35b89f03/src/libraries/System.Private.CoreLib/src/System/Buffers/ConfigurableArrayPool.cs (L9)
ab35b89f03/src/libraries/System.Private.CoreLib/src/System/Buffers/TlsOverPerCoreLockedStacksArrayPool.cs