summaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/util
diff options
context:
space:
mode:
authorDaniil Cherednik <[email protected]>2023-10-23 20:34:16 +0000
committerDaniil Cherednik <[email protected]>2023-10-23 20:34:16 +0000
commite84c813452e9ed62415b2d17a117008fce909a3d (patch)
tree998632d6f08419de5b644940799f3be9408ab46b /library/cpp/actors/util
parentdf6e99640a1489cde9b7cc5b58a3747c6ec28921 (diff)
Intermediate changesstable-23-3
x-stable-origin-commit: 8b96eef194d7fb3b315816b97322e8dd90bf3d94
Diffstat (limited to 'library/cpp/actors/util')
-rw-r--r--library/cpp/actors/util/rope.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/library/cpp/actors/util/rope.h b/library/cpp/actors/util/rope.h
index 201ce06f0d4..6d424ce58b7 100644
--- a/library/cpp/actors/util/rope.h
+++ b/library/cpp/actors/util/rope.h
@@ -915,8 +915,6 @@ class TRopeArena {
TAllocateCallback Allocator;
TRope Arena;
- size_t Size = 0;
- THashSet<const void*> AccountedBuffers;
public:
TRopeArena(TAllocateCallback&& allocator)
@@ -949,16 +947,6 @@ public:
return res;
}
-
- size_t GetSize() const {
- return Size;
- }
-
- void AccountChunk(const TRcBuf& chunk) {
- if (AccountedBuffers.insert(chunk.Backend.UniqueId()).second) {
- Size += chunk.GetOccupiedMemorySize();
- }
- }
};
struct TRopeUtils {
@@ -1131,9 +1119,6 @@ inline TRope TRope::CopySpaceOptimized(TRope&& origin, size_t worstRatioPer1k, T
}
res.Size = origin.Size;
origin = TRope();
- for (const TRcBuf& chunk : res.Chain) {
- arena.AccountChunk(chunk);
- }
return res;
}