[Lazarus] Lazarus slow on large files

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Feb 16 03:21:15 CET 2012


On Thu, 16 Feb 2012 00:14:41 +0200
Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:

> On 15 February 2012 21:19, Massimo Soricetti  wrote:
> > I wonder if something in TStringList internals goes really bad when has more
> > than 65.536 lines?
> > Maybe this problem afflicts the lazarus IDE too...
> 
> Yes, it is a known problem, and why Lazarus IDE uses TTreeview in many
> places like the Messages dialog, instead of TStringGrid.

TStringGrid in messages?

Funny idea. What editor uses a grid to show lines of text?

 
> A few months back (maybe even a year or more) I reported this issue
> too. fpGUI's StringGrid can create 8mil populated rows or columns in
> an instant. LCL took....well, it never finished after 4 hours on a
> quad core system - then I killed the test app. :)  I'm sure if you
> search the mailing list archive, you will find that message thread.

Who needs 8 million rows in a string grid?
I tried 1 million and it took 4 secs.

8 million created an endless loop and out of memory. Maybe the grid
should define a maximum.

Mattias




More information about the Lazarus mailing list