mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-31 15:06:26 +00:00
wip
This commit is contained in:
parent
17026756a5
commit
2368a3afce
1 changed files with 1 additions and 4 deletions
|
@ -82,9 +82,7 @@ func (br *blockResult) clone() *blockResult {
|
||||||
brNew := &blockResult{}
|
brNew := &blockResult{}
|
||||||
|
|
||||||
brNew.bs = br.bs
|
brNew.bs = br.bs
|
||||||
|
brNew.bm = br.bm
|
||||||
brNew.bm = getBitmap(br.bm.bitsLen)
|
|
||||||
brNew.bm.copyFrom(br.bm)
|
|
||||||
|
|
||||||
cs := br.getColumns()
|
cs := br.getColumns()
|
||||||
|
|
||||||
|
@ -137,7 +135,6 @@ func (br *blockResult) addValue(v string) {
|
||||||
func (br *blockResult) sizeBytes() int {
|
func (br *blockResult) sizeBytes() int {
|
||||||
n := int(unsafe.Sizeof(*br))
|
n := int(unsafe.Sizeof(*br))
|
||||||
|
|
||||||
n += br.bm.sizeBytes()
|
|
||||||
n += br.a.sizeBytes()
|
n += br.a.sizeBytes()
|
||||||
n += cap(br.valuesBuf) * int(unsafe.Sizeof(br.valuesBuf[0]))
|
n += cap(br.valuesBuf) * int(unsafe.Sizeof(br.valuesBuf[0]))
|
||||||
n += cap(br.timestamps) * int(unsafe.Sizeof(br.timestamps[0]))
|
n += cap(br.timestamps) * int(unsafe.Sizeof(br.timestamps[0]))
|
||||||
|
|
Loading…
Reference in a new issue