示例#1
0
文件: options.go 项目: C0rWin/fabric
// SetArenaBlockSize sets the size of one block in arena memory allocation.
//
// If <= 0, a proper value is automatically calculated (usually 1/10 of
// writer_buffer_size).
// Default: 0
func (opts *Options) SetArenaBlockSize(value int) {
	C.rocksdb_options_set_arena_block_size(opts.c, C.size_t(value))
}
示例#2
0
文件: options.go 项目: CowLeo/qdb
// SetBlockSize sets the approximate size of user data packed per block.
//
// The default is roughly 4096 uncompressed bytes. A better setting depends on
// your use case. See the rocksdb documentation for details.
func (o *Options) SetArenaBlockSize(s int) {
	C.rocksdb_options_set_arena_block_size(o.Opt, C.size_t(s))
}