Lexer in D
FG
home at fgda.pl
Mon Mar 11 08:21:29 PDT 2013
On 2013-03-11 16:11, Namespace wrote:
> I've also done some benchmarks. And I wonder why my appender is much faster if I
> enable memory reservation.
Probably just because D's Appender has a better growth scheme than yours and you
reallocate too often. Try to compare how often that happens.
> I'm also very interested to hear some improvements tips.
Well, you may add a check whether alloc/realloc actually succeeded. :)
More information about the Digitalmars-d-learn
mailing list