Identifier (...) is too long by X characters

John Reimer John_member at pathlink.com
Sun Jul 9 14:08:14 PDT 2006


In article <e8pf88$22ki$1 at digitaldaemon.com>, Tom S says...
>
>I just got such an error while trying to instantiate a rather longish 
>template. This is pretty much a blocker for more complex template code. 
>Couldn't symbol names be truncated at some predefined length ?
>
>It also seems like long symbols are killing DMD performance-wise as they 
>can eat lots of RAM while compiling. Then mem allocations + cache misses 
>+ GC stalls make it crawl. I've tried instantiating a struct template 
>(the Tuple from my 'bind' lib) with a nesting level of 50 and before I 
>managed to kill DMD, it ate 700MB of virtual mem out of my 512MB RAM system.
>
>Can anything be done with it ? It seems like compile times and memory 
>use explode when dealing with more complex templates.
>
>
>-- 
>Tomasz Stachowiak  /+ a.k.a. h3r3tic +/


Tsk, tsk, tsk... what mad template experiments are you up to now, Tom?  Your
computer must be smoking at this point. lol!

-JJR





More information about the Digitalmars-d-bugs mailing list