spir: > 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. Bye, bearophile