[Issue 7442] ctRegex!`\p{Letter}` uses a lot memory in compilation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 13 07:34:46 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7442



--- Comment #5 from Don <clugdbug at yahoo.com.au> 2012-04-13 07:35:32 PDT ---
(In reply to comment #4)
> 15000 ? Wow. At any rate I tried hard to make it so that the thing never
> reallocates unless required (but CTFE has no support for assumeSafeAppend) so
> these should mostly be an in-place appends.
> 
> Still I'll recheck if the R-T version is fast/slow maybe I missed something.

By the way, if you go into the compiler source, file interpret.c, line 34 is
#define SHOWPERFORMANCE 0
If you change that 0 to 1, and then recompile, it will tell you some basic CTFE
stats, eg how many assignments it performed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list