On Thu, Feb 25, 2016 at 02:03:47PM -0800, Walter Bright via Digitalmars-d wrote: > On 2/25/2016 1:50 PM, Andrei Alexandrescu wrote: > >Good to know, thanks! -- Andrei > > DMD did slow down because it was now being compiled by DMD instead of > g++. Also, dmd was doing multithreaded file I/O, but that was removed > because speed didn't matter <grrrr>. [...]
I remember you did a bunch of stuff to the optimizer after the switchover to self-hosting; how much of a difference did that make? Are there any low-hanging fruit left that could make dmd faster? On a related note, I discovered an O(n^2) algorithm in the front-end... it's unlikely to be an actual bottleneck in practice (basically it's quadratic in the number of fields in an aggregate), though you never know. It actually does a full n^2 iterations, and seemed like it could be at least pared down to n(n+1)/2, even without doing better than O(n^2). T -- What is Matter, what is Mind? Never Mind, it doesn't Matter.