[Issue 12844] Absurd RAM Required for ctRegex

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 6 10:00:57 PDT 2014


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

Dmitry Olshansky <dmitry.olsh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh at gmail.com

--- Comment #5 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
Matters are that made much worse by the fact that at CTFE all of [0-9]
character sets get rebuilt for each occurrence, because charset cache is
thread-local (no luck at CTFE). The memory leak itself though is a compiler
issue.

Hm, I could try and have an extra cache local to the scope of each regular
expression compilation.

--


More information about the Digitalmars-d-bugs mailing list