MCPcopy
hub / github.com/etcd-io/bbolt / maxInlineBucketSize

Method maxInlineBucketSize

bucket.go:831–833  ·  view source on GitHub ↗

Returns the maximum total size of a bucket to make it a candidate for inlining.

()

Source from the content-addressed store, hash-verified

829
830// Returns the maximum total size of a bucket to make it a candidate for inlining.
831func (b *Bucket) maxInlineBucketSize() uintptr {
832 return uintptr(b.tx.db.pageSize / 4)
833}
834
835// write allocates and writes a bucket to a byte slice.
836func (b *Bucket) write() []byte {

Callers 1

inlineableMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected