From 2368a3afceb2d5a99dd005466417035aa0b4a2ba Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 16 May 2024 00:21:01 +0200 Subject: [PATCH] wip --- lib/logstorage/block_result.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/logstorage/block_result.go b/lib/logstorage/block_result.go index ee0b06aeb..b3cb9d5f0 100644 --- a/lib/logstorage/block_result.go +++ b/lib/logstorage/block_result.go @@ -82,9 +82,7 @@ func (br *blockResult) clone() *blockResult { brNew := &blockResult{} brNew.bs = br.bs - - brNew.bm = getBitmap(br.bm.bitsLen) - brNew.bm.copyFrom(br.bm) + brNew.bm = br.bm cs := br.getColumns() @@ -137,7 +135,6 @@ func (br *blockResult) addValue(v string) { func (br *blockResult) sizeBytes() int { n := int(unsafe.Sizeof(*br)) - n += br.bm.sizeBytes() n += br.a.sizeBytes() n += cap(br.valuesBuf) * int(unsafe.Sizeof(br.valuesBuf[0])) n += cap(br.timestamps) * int(unsafe.Sizeof(br.timestamps[0]))