DMD internal: appendToModuleMember performance
David Nadlinger via Digitalmars-d
digitalmars-d at puremagic.com
Fri Apr 22 12:02:28 PDT 2016
On Friday, 15 April 2016 at 18:33:44 UTC, Johan Engelen wrote:
> I'm thinking about removing the old array all-together.
> My question is: is it essential to keep an ordered list? (I see
> a `.shift(...)` call on the array, to put something in first
> position. If so, could that be solved by having *two* trees,
> where "in-order" iteration first iterates over the first one
> and then the second. The "high priority" symbols can then be
> put in the first tree, normal ones in the second tree (if that
> is how order matters...).
Did you have a closer look at where this is done? One place where
order matters is for `object` in `importAll`, but that's
trivially rewritten a different way.
— David
More information about the Digitalmars-d
mailing list