How would I optimize this parser?

bearophile bearophileHUGS at
Mon Nov 1 05:14:06 PDT 2010


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

I have answered the wrong question sorry :-) My answer was about the tree node allocations.

I have not studied enough the allocation patterns of those arrays, so I can't answer. You may collect better statistics yourself.


More information about the Digitalmars-d-learn mailing list