Assigning global and static associative arrays
Philippe Sigaud
philippe.sigaud at gmail.com
Sat Sep 1 00:39:04 PDT 2012
On Sat, Sep 1, 2012 at 12:21 AM, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> Using an enum is particularly bad for an AA, since it's not exactly a simple
> data type, and there's definitely some cost to constructing them.
Yeah, my (nasty) bad. I'm too used to put 'enum' everywhere.
Gosh, I confirm using static this() instead of enum results in a 40%
decrease in runtime for me.
I'll scourge my code from enum AA...
More information about the Digitalmars-d-learn
mailing list