Skip to content

Commit

Permalink
removed manual calls of GC
Browse files Browse the repository at this point in the history
  • Loading branch information
eastorski committed Dec 13, 2024
1 parent 63a0624 commit 44982a7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions erigon-lib/seg/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (
"math/bits"
"os"
"path/filepath"
"runtime"
"slices"
"sync"
"time"
Expand Down Expand Up @@ -241,9 +240,7 @@ func (c *Compressor) Compress() error {
c.superstrings <- c.superstring
}
close(c.superstrings)
runtime.GC()
c.wg.Wait()
runtime.GC()

if c.lvl < log.LvlTrace {
c.logger.Log(c.lvl, fmt.Sprintf("[%s] BuildDict start", c.logPrefix), "workers", c.Workers)
Expand Down

0 comments on commit 44982a7

Please sign in to comment.