mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-01 00:31:21 +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)
|
wg.Add(workers)
|
||||||
suffixCollectors := make([]*etl.Collector, workers)
|
suffixCollectors := make([]*etl.Collector, workers)
|
||||||
for i := 0; i < workers; i++ {
|
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)
|
collector.LogLvl(lvl)
|
||||||
|
|
||||||
suffixCollectors[i] = collector
|
suffixCollectors[i] = collector
|
||||||
|
Loading…
Reference in New Issue
Block a user