Lexer in D

Dmitry Olshansky dmitry.olsh at gmail.com
Mon Mar 4 11:24:03 PST 2013


04-Mar-2013 23:19, Namespace пишет:
> Yes, but I'm not as familiar with ranges. But I want to learn more about
> them and try it then.
> What do you mean, how much would entail the use of ranges compared to my
> current method? 30%?

Basically you copy Token structs and sometimes reallocate the whole 
array (I guess at 60% you don't reallocate but waste time on GC.malloc 
that zeroes out memory block). My estimate is no less then 10-15%.

-- 
Dmitry Olshansky


More information about the Digitalmars-d-learn mailing list