Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #3980 > unrolled thread

I have looked at TStringList and TList of FreePascal

Started byIntelli2 <intelli2@mama.com>
First post2017-12-13 15:34 -0500
Last post2017-12-13 15:34 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.programming.threads


Contents

  I have looked at TStringList and TList of FreePascal Intelli2 <intelli2@mama.com> - 2017-12-13 15:34 -0500

#3980 — I have looked at TStringList and TList of FreePascal

FromIntelli2 <intelli2@mama.com>
Date2017-12-13 15:34 -0500
SubjectI have looked at TStringList and TList of FreePascal
Message-ID<p0s2s2$gq2$2@dont-email.me>
Hello,

I have looked at TStringList and TList of FreePascal, and they are using 
a Delta on the Grow() method of TStringList and TList, like this:

if FCapacity > 64 then Delta := FCapacity div 4

So since the Delta is scaling, so copying of the dynamic array when 
resizing is needed is efficient, so TList and TStringList of Delphi and 
FreePascal are also efficient, so no need for Hashed Array Tree.

Thank you,
Amine Moulay Ramdane.

[toc] | [standalone]


Back to top | Article view | comp.programming.threads


csiph-web