Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #3980 > unrolled thread
| Started by | Intelli2 <intelli2@mama.com> |
|---|---|
| First post | 2017-12-13 15:34 -0500 |
| Last post | 2017-12-13 15:34 -0500 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.programming.threads
I have looked at TStringList and TList of FreePascal Intelli2 <intelli2@mama.com> - 2017-12-13 15:34 -0500
| From | Intelli2 <intelli2@mama.com> |
|---|---|
| Date | 2017-12-13 15:34 -0500 |
| Subject | I 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.
Back to top | Article view | comp.programming.threads
csiph-web