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

Bart bartjunk64 at gmail.com
Tue Jan 10 00:22:13 CET 2017

On 1/9/17, Werner Pamler via Lazarus <lazarus at lists.lazarus-ide.org> wrote:

> I would be tempted to implement such a table in fpspreadsheet, but its
> problem is that it occupies memory for empty cells

An empty cell occupies only a nil pointer.

Mind you that when you do not know the dimensions of the table AND you
have to increase ColCount several times whilst filling the table, then
I suspect things will slow down significantly, because each increase
of ColCount requires RowCount times a SetLength on each row (which
means re-allocating the entire row).

I think dealing with spreadsheets needs a component that scales well.
I got an EOutOfMemory on a 10000x5000 table (for which I also had all
strings in memory a second time though).


More information about the Lazarus mailing list