How would I optimize this parser?

spir denis.spir at gmail.com
Mon Nov 1 04:56:33 PDT 2010


On Sun, 31 Oct 2010 22:02:10 -0400
bearophile <bearophileHUGS at lycos.com> wrote:

> The children arrays inside TagNode receive a total of 414_000 appends, they cause reallocations.

Then an optimization would be to somehow grossly predict array sizes and preallocate?


Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



More information about the Digitalmars-d-learn mailing list