A few numbers on allocation in dmd

rikki cattermole rikki at cattermole.co.nz
Tue Jun 30 01:54:54 UTC 2020


On 30/06/2020 1:18 PM, Andrei Alexandrescu wrote:
> * Any work that reduces the number of TypeIdentifier, TemplateInstance, 
> etc. objects in the first place would help quite a bit.

One strategy that is used with identifiers in dmd is to use a table 
lookup of strings to them. By making them unique, it makes them faster 
overall.

If we could strip out the SLOC out of the TypeIdentifier class, this 
strategy could be used for it.


More information about the Digitalmars-d mailing list