On Thu, Jul 25, 2013 at 2:25 PM, Walter Bright <newshound2@digitalmars.com> wrote:
On 7/25/2013 11:21 AM, bearophile wrote:
Andrei Alexandrescu:

http://www.reddit.com/r/programming/comments/1j1i30/increasing_the_d_compiler_speed_by_over_75/


Where is the 75% value coming from?

Not sure what you mean. Numbers at the end of the article.


I am also confused by the numbers. What I see at the end of the article is "21.56 seconds, and the latest development version does it in 12.19", which is really a 43% improvement. (Which is really great too.)
 


Regarding the hashing, maybe a different hashing scheme, like Python dicts
hashing could be better.

It's not the hashing that's slow. It's the lookup that is.



Regarding Don's problems with memory used by dmd, is it a good idea to add a
compilation switch like "-cgc" that switches on a garbage collector for the
compiler (disabled on default)?

It might be.