diff options
Diffstat (limited to 'actions')
| -rw-r--r-- | actions/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/actions/config.go b/actions/config.go index fb0e3c1..a8eb029 100644 --- a/actions/config.go +++ b/actions/config.go @@ -276,6 +276,9 @@ func timeHashingCosts(costs *metadata.HashingCosts) (time.Duration, error) { } end := cpuTimeInNanoseconds() + // This uses a lot of memory, run the garbage collector + runtime.GC() + return time.Duration((end - begin) / costs.Parallelism), nil } |