You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing a sstable containing references to blob files, the sstable writer
constructs the blob reference liveness index—an accounting of which values in
which blob files are referenced. Once we've finalized the data for an
individual block within a blob file, we encode the data to a buffer through
appending. These appends show up as 3% of all allocations in heap profiles from
a recent run of the pebble ycsb/D/values=1024 benchmark. This commit adds a
call to slices.Grow to avoid unnecessary intermediate allocations.
Additionally, when constructing state for a new blob file, we allocate an
initial 512B under the expectation that most referenced blob files will require
around 512B to encode all the values that are referenced from the sstable.
0 commit comments