[Issue 20434] Drastic GC slowdown with repeated large allocations

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 4 14:43:09 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=20434

Steven Schveighoffer <schveiguy at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at gmail.com

--- Comment #1 from Steven Schveighoffer <schveiguy at gmail.com> ---
> 			int[] trash = uninitializedArray!(int[])(i * 1024*1024);

Should this be `size * 1024*1024` instead? I would expect doing 1000
allocations of +1MB each iteration to get slower over time.

--


More information about the Digitalmars-d-bugs mailing list