Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
As a result of this commit, the GC can be triggered for every allocation in a series of small allocations if compiled with --gc:markandsweep, leading to massive overhead.
For example, on my machine the following code runs in 50ms with the default GC, but takes nearly 4 seconds with --gc:markandsweep.
const n = 1_000_000
type T =
proc main =
var t: T = nil
for i in 1..n:
t = T(val: i, next: t)
The text was updated successfully, but these errors were encountered:
fixes #10271 [backport]
(cherry picked from commit 451377f)
maybe related to #10040
Sorry, something went wrong.
Successfully merging a pull request may close this issue.