[#20] Client: Optimize memory usage #21
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-csharp#21
Loading…
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?
Avoid memory allocation, use cache and static
Signed-off-by: Pavel Gross p.gross@yando.com
@ -11,2 +16,3 @@
public static ContainerID ToMessage(this ContainerId model)
{
return new ContainerID
if (!Cache.Owners.TryGetValue(model, out ContainerID? message))
Why containerID from owners cache?
This is a typo, sure. Fixed.
It is hard to review such PR's: this PR for example contains refactorings, functional changes, format changes.