----- Original Message -----
From: "Seth Grover" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, November 05, 2006 8:42 AM
Subject: Re: [lazarus] issues with virtual treeview... ideas or
alternatives?
After some testing, I ran into the real problem with using a TDrawGrid
like was suggested. For small data sets its fine, but when I tried to
do something big (5 million rows with 5 columns each) the memory usage
shot through the roof (80 percent of my system resources). Writing the
same test app in Delphi using a TListView with the OwnerData set to
"true" doesn't exhibit that problem. I haven't examined the internals
of these components, but it looks to me like with the TDrawGrid memory
has got to be allocated for each cell anyway, and with the TListView
in virtual mode memory is only allocated when it is needed.
Five millions are a lot of rows, at the moment you would have to make a
specialized grid, something like dbgrid, that uses only the visible rows to
show all information.
Probably something could be done to handle better this kind of situation, I
will add it to my todo list.
Jesus Reyes A.
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam �gratis!
Reg�strate ya - http://correo.yahoo.com.mx/
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives