[Lazarus] In search of a component for holding a table of strings

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Tue Jan 10 11:06:58 CET 2017


On 2017-01-09 15:28, Werner Pamler via Lazarus wrote:
>> > filling a 1000x1000 TStringTable just cost me 76 ms.
>> > A 5000x5000 table however cost me 1248 ms.
>
> Amazing. I tried the AVLTree used by fpspreadsheet and it needs 0.37 sec 
> for 1000x1000 and 10.3 sec for 5000x5000.

I know you guys are talking about non-gui structures, but just for
comparison I included fpGUI's StringGrid results, which uses a custom
internal storage mechanism.

Creating (setting column count and row count) and populating (every cell
has a value written to it) a 5,000 x 5,000 grid takes 1.815 seconds on
my system.

The same test with a 1,000 x 1,000 takes 0.118 seconds.

The same test with 10,000 x 5,000 takes 4.514 seconds.

Not to shabby for a GUI component. ;-)

Now if any developers implements an application that actually displays
that amount of data to the end-user without filtering, I'll be first in
line to knock them over the head. :-P

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp


More information about the Lazarus mailing list