Thread setup time eating up all parallel improvement?

Thanks a lot for that. It was simply not set up for PRs. We didn’t think it would get this much attention and love, honestly.

Function gc_controlled_computation()
GC.enable(false)
Try
# your code here
Result = heavy_computation()
Return result
Finally
GC.enable(true)
GC.gc()
End
End

1 Like