[#20] Client: Optimize memory usage #21

Merged
PavelGrossSpb merged 1 commit from PavelGrossSpb/frostfs-sdk-csharp:misc/memory_optimization into master 2024-09-04 19:51:24 +00:00
Member

Avoid memory allocation, use cache and static

Signed-off-by: Pavel Gross p.gross@yando.com

Avoid memory allocation, use cache and static Signed-off-by: Pavel Gross <p.gross@yando.com>
PavelGrossSpb added 1 commit 2024-08-01 13:20:15 +00:00
[#20] Client: Optimize memory usage
All checks were successful
DCO / DCO (pull_request) Successful in 41s
0ddde467cd
Avoid memory allocation, use cache and static

Signed-off-by: Pavel Gross <p.gross@yando.com>
PavelGrossSpb requested review from dstepanov-yadro 2024-08-01 13:20:53 +00:00
PavelGrossSpb requested review from orikik 2024-08-01 13:20:53 +00:00
dstepanov-yadro reviewed 2024-08-01 14:33:21 +00:00
@ -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?

Why containerID from owners cache?
Author
Member

This is a typo, sure. Fixed.

This is a typo, sure. Fixed.
dstepanov-yadro marked this conversation as resolved
dstepanov-yadro reviewed 2024-08-01 14:38:05 +00:00
dstepanov-yadro left a comment
Member

It is hard to review such PR's: this PR for example contains refactorings, functional changes, format changes.

It is hard to review such PR's: this PR for example contains refactorings, functional changes, format changes.
PavelGrossSpb added 1 commit 2024-08-01 15:03:32 +00:00
[#20] Client: Fix typo
All checks were successful
DCO / DCO (pull_request) Successful in 26s
6083834582
Signed-off-by: Pavel Gross <p.gross@yando.com>
dstepanov-yadro approved these changes 2024-08-01 15:08:00 +00:00
PavelGrossSpb merged commit 6083834582 into master 2024-08-05 07:28:58 +00:00
PavelGrossSpb deleted branch misc/memory_optimization 2024-08-05 07:29:00 +00:00
Sign in to join this conversation.
No description provided.