From 754966bea08146857dea0d9de05e95a4fc7947e8 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Wed, 28 May 2014 12:50:46 -0600 Subject: Optimize Tx.Check(). This commit removes several memory allocations occurring on every page and also caches the freelist map used when iterating over the pages. This results in significantly better performance. --- cmd/bolt/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/bolt/main.go') diff --git a/cmd/bolt/main.go b/cmd/bolt/main.go index 44ba5a1..a79302d 100644 --- a/cmd/bolt/main.go +++ b/cmd/bolt/main.go @@ -10,11 +10,13 @@ import ( "github.com/boltdb/bolt" "github.com/codegangsta/cli" + // "github.com/davecheney/profile" ) var branch, commit string func main() { + // defer profile.Start(&profile.Config{CPUProfile: true, MemProfile: true}).Stop() log.SetFlags(0) NewApp().Run(os.Args) } -- cgit v1.2.3