Re: Increasing D Compiler Speed by Over 75%

2013-07-26 Thread dennis luehring
Am 25.07.2013 20:03, schrieb Walter Bright: http://www.reddit.com/r/programming/comments/1j1i30/increasing_the_d_compiler_speed_by_over_75/ do you compare dmc based and visualc based dmd builds? the vc dmd build seems to be always two times faster - how does that look with your optimization?

Re: Increasing D Compiler Speed by Over 75%

2013-07-26 Thread Don
On Thursday, 25 July 2013 at 18:03:22 UTC, Walter Bright wrote: http://www.reddit.com/r/programming/comments/1j1i30/increasing_the_d_compiler_speed_by_over_75/ I just reported this compile speed killer: http://d.puremagic.com/issues/show_bug.cgi?id=10716 It has a big impact on some of the

Re: Article: Increasing the D Compiler Speed by Over 75%

2013-07-26 Thread bearophile
Walter Bright: Hash collisions are not the problem - I sized the hash bucket array to make it fairly sparse. Neither is the hash algorithm. The slowness was in the frackin' convert the hash to an index in the bucket, which is a modulus operation. Thankfully in that thread Paul Hsieh has

Re: Article: Increasing the D Compiler Speed by Over 75%

2013-07-26 Thread Dmitry Olshansky
26-Jul-2013 01:25, Walter Bright пишет: On 7/25/2013 1:00 PM, bearophile wrote: Walter Bright: It's not the hashing that's slow. It's the lookup that is. By different hashing scheme I meant different strategies in resolving hash collisions, likes double hashing, internal hashing, cuckoo

Re: Article: Increasing the D Compiler Speed by Over 75%

2013-07-26 Thread Dmitry Olshansky
26-Jul-2013 14:47, Dmitry Olshansky пишет: 26-Jul-2013 01:25, Walter Bright пишет: The slowness was in the frackin' convert the hash to an index in the bucket, which is a modulus operation. Then it's past due to finally stop the madness of modulo prime table and use a power of 2 size. In

Re: Increasing D Compiler Speed by Over 75%

2013-07-26 Thread Walter Bright
On 7/26/2013 1:25 AM, dennis luehring wrote: do you compare dmc based and visualc based dmd builds? the vc dmd build seems to be always two times faster - how does that look with your optimization? It would be most interesting to see just what it was that made the vc build faster. But that

Re: Article: Increasing the D Compiler Speed by Over 75%

2013-07-26 Thread Walter Bright
On 7/26/2013 5:11 AM, Dmitry Olshansky wrote: 26-Jul-2013 14:47, Dmitry Olshansky пишет: 26-Jul-2013 01:25, Walter Bright пишет: The slowness was in the frackin' convert the hash to an index in the bucket, which is a modulus operation. Then it's past due to finally stop the madness of

Re: Article: Increasing the D Compiler Speed by Over 75%

2013-07-26 Thread Dmitry Olshansky
26-Jul-2013 23:17, Walter Bright пишет: On 7/26/2013 5:11 AM, Dmitry Olshansky wrote: 26-Jul-2013 14:47, Dmitry Olshansky пишет: 26-Jul-2013 01:25, Walter Bright пишет: The slowness was in the frackin' convert the hash to an index in the bucket, which is a modulus operation. Then it's

Re: echo: -n, the next installment

2013-07-26 Thread Jesse Phillips
On Friday, 26 July 2013 at 00:38:46 UTC, John Colvin wrote: After a few weeks of not getting around to it, here's my second post: http://foreach-hour-life.blogspot.co.uk/2013/07/the-first-corner-n-for-echo.html BTW, std.getopt is a good way to parse arguments. Not sure if it is relevant to