You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Example
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_000type T =refobject
val: int
next: T
procmain=var t: T =nilfor i in1..n:
t =T(val: i, next: t)
main()
The text was updated successfully, but these errors were encountered:
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.Example
For example, on my machine the following code runs in 50ms with the default GC, but takes nearly 4 seconds with
--gc:markandsweep
.The text was updated successfully, but these errors were encountered: