[Issue 6498] [CTFE] copy-on-write is slow and causes huge memory usage

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 10 05:16:30 UTC 2022


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

mhh <maxhaton at gmail.com> changed:

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

--- Comment #6 from mhh <maxhaton at gmail.com> ---
The memory usage has improved a lot but this is still ridiculously slow.

Compare with a soon to be upstream-ed -preview=newCTFE:
https://asciinema.org/a/zTHuVmXbsZ4ryWGfCd2bXoJG5 (roughly 10x faster)

SDC does this in about 0.04 sec on my machine so 50x to 80x faster

--


More information about the Digitalmars-d-bugs mailing list