Permalink
Browse files

clarity in docs on SetBlockSize and SetlBlockRestartInterval

  • Loading branch information...
jmhodges committed Apr 1, 2012
1 parent 3b94c08 commit cee453fa9206ba9ab2ed62974980bda6130213ac
Showing with 4 additions and 2 deletions.
  1. +4 −2 options.go
View
@@ -129,15 +129,17 @@ func (o *Options) SetMaxOpenFiles(n int) {
// SetBlockSize sets the approximate size of user data packed per block.
//
-// See the LevelDB C++ documentation for details.
+// The default is roughly 4096 uncompressed bytes. A better setting depends on
+// your use case. See the LevelDB C++ documentation for details.
func (o *Options) SetBlockSize(s int) {
C.leveldb_options_set_block_size(o.Opt, C.size_t(s))
}
// SetBlockRestartInterval is the number of keys between restarts points for
// delta encoding keys.
//
-// Most clients should leave this parameter alone.
+// Most clients should leave this parameter alone. See the LevelDB C++
+// documentation for details.
func (o *Options) SetBlockRestartInterval(n int) {
C.leveldb_options_set_block_restart_interval(o.Opt, C.int(n))
}

0 comments on commit cee453f

Please sign in to comment.