Open steveyen opened 7 years ago
Saw this while doing a code review perusal, and wondering if the following allocates garbage...
pair := []uint64{opKlVl, uint64(keyStart)}
From: https://github.com/couchbase/moss/blob/master/store_compact.go#L534
If so, perhaps a pre-allocated pair can be held as part of the compactWriter and reused across multiple calls to compactWriter.Mutate()
Saw this while doing a code review perusal, and wondering if the following allocates garbage...
From: https://github.com/couchbase/moss/blob/master/store_compact.go#L534
If so, perhaps a pre-allocated pair can be held as part of the compactWriter and reused across multiple calls to compactWriter.Mutate()