In our previous episode, Michael Van Canneyt said: > > But of course all datastructures based on a single array (and thus inviting > > very large block allocations) are fundamentally flawed because of it in the > > first place. > > Which is why I recommended going the SAX way and store data manually.
Maybe in this case, but the question remains if tfplist is as good as it can be. For TMemoryStream it was not such a big problem because realloc is virtual. > There is no single good and simple catch-all mechanism. So that brings up the question of what is the advantage of still using a percentage with so very large block sizes? I assume less reallocation tries make the chance of reaching a larger blocksize more feasable? _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal