Official compiler

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 26 11:17:38 PST 2016


On Fri, Feb 26, 2016 at 01:53:21PM -0500, Andrei Alexandrescu via Digitalmars-d wrote:
> On 02/26/2016 10:38 AM, David Nadlinger wrote:
> >On Thursday, 25 February 2016 at 23:06:43 UTC, H. S. Teoh wrote:
> >>Are there any low-hanging fruit left that could make dmd faster?
> >
> >A big one would be overhauling the template mangling scheme so it
> >does not generate mangled names a few hundred kilo (!) bytes in size
> >anymore for code that uses templates and voldemort types.
> 
> My understanding is the main problem is the _same_ templates are
> repeatedly instantiated with the same exact parameters - the epitome
> of redundant work.
[...]

I must be missing something, but why can't we use the obvious solution
to use some kind of hash table to track previous instantiations?


T

-- 
There are two ways to write error-free programs; only the third one works.


More information about the Digitalmars-d mailing list