Skip to content

Commit

Permalink
Merge pull request #201 from qianbin/cache-size
Browse files Browse the repository at this point in the history
adjust leveldb default cache size
  • Loading branch information
qianbin authored Jan 8, 2019
2 parents 93a4fef + 77fdb8d commit 758fa21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/thor/must.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func openMainDB(ctx *cli.Context, dataDir string) *lvldb.LevelDB {

dir := filepath.Join(dataDir, "main.db")
db, err := lvldb.New(dir, lvldb.Options{
CacheSize: 128,
CacheSize: 256,
OpenFilesCacheCapacity: fileCache,
})
if err != nil {
Expand Down

0 comments on commit 758fa21

Please sign in to comment.