mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-29 07:07:16 +00:00
compress: to use less ram (#691)
This commit is contained in:
parent
88e80dac7a
commit
fcd7314c39
@ -95,7 +95,7 @@ func NewCompressor(ctx context.Context, logPrefix, outputFile, tmpDir string, mi
|
||||
wg.Add(workers)
|
||||
suffixCollectors := make([]*etl.Collector, workers)
|
||||
for i := 0; i < workers; i++ {
|
||||
collector := etl.NewCollector(logPrefix+"_dict", tmpDir, etl.NewSortableBuffer(etl.BufferOptimalSize))
|
||||
collector := etl.NewCollector(logPrefix+"_dict", tmpDir, etl.NewSortableBuffer(etl.BufferOptimalSize/2))
|
||||
collector.LogLvl(lvl)
|
||||
|
||||
suffixCollectors[i] = collector
|
||||
|
Loading…
Reference in New Issue
Block a user