reduce delta cache size

master
Oliver Tonnhofer 2013-06-03 12:46:33 +02:00
parent d95442d580
commit 2649fc05cf
1 changed files with 2 additions and 2 deletions

4
cache/delta.go vendored
View File

@ -101,8 +101,8 @@ func NewDeltaCoordsCache(path string) (*DeltaCoordsCache, error) {
}
coordsCache.lruList = list.New()
coordsCache.table = make(map[int64]*CoordsBunch)
// mem req for cache approx. capacity*deltaCacheBunchSize*30
coordsCache.capacity = 1024 * 8
// mem req for cache approx. capacity*deltaCacheBunchSize*40
coordsCache.capacity = 1024
return &coordsCache, nil
}