aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-20 01:35:33 -0400
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-20 01:35:33 -0400
commit54e062c18a7eb0a51b8b9c35aab07bd6a89802fb (patch)
tree6518c06ea5a732c50398db48c4374b8f58e3e54e
parent5cf2066fe691968320b6590060eb9c0bcb7637da (diff)
downloadAtlas-54e062c18a7eb0a51b8b9c35aab07bd6a89802fb.tar.gz
Atlas-54e062c18a7eb0a51b8b9c35aab07bd6a89802fb.zip
db/pdatadb: Optimize sizes
From ~200k samples: 15912 0900 30390 1000 4950 1100 3825 1200 11058 1300 31980 1400 50590 1500 33482 1600 15576 1700 5714 1800 1217 1900 105 2000 2 2100 1 6100
-rw-r--r--db/pdatadb/db.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/pdatadb/db.go b/db/pdatadb/db.go
index b366ea3..c27b110 100644
--- a/db/pdatadb/db.go
+++ b/db/pdatadb/db.go
@@ -132,7 +132,7 @@ func (db *DB) SetPdata(uid uint64, buf []byte) (n int, err error) {
pdataHash := hex.EncodeToString(hash[:])
var b bytes.Buffer
- b.Grow(500)
+ b.Grow(2000)
zw := gzip.NewWriter(&b)
if _, err := zw.Write(buf); err != nil {