Re: [Lazarus] Lazarus slow on large files

2012-02-16 Thread Massimo Soricetti
Il 16/02/2012 03:21, Mattias Gaertner ha scritto: TStringGrid in messages? Funny idea. What editor uses a grid to show lines of text? [ ... ] 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

Re: [Lazarus] Lazarus slow on large files

2012-02-16 Thread Sven Barth
Am 15.02.2012 23:21, schrieb Graeme Geldenhuys: On 15 February 2012 15:40, Sven Barth wrote: This does not help if some features that one needs (or wants) are only implemented in trunk... (yes, I'm aware that one could merge manually, but it's far easier for me to just use trunk) Stability

Re: [Lazarus] Lazarus slow on large files

2012-02-16 Thread Mattias Gaertner
On Thu, 16 Feb 2012 12:48:08 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 16 February 2012 04:21, Mattias Gaertner wrote: TStringGrid in messages? Yes, I believe the Messages window used to use a StringGrid (or was that a ListView or ListBox?). TListBox. But that was too

Re: [Lazarus] Lazarus slow on large files

2012-02-16 Thread zeljko
On Thursday 16 of February 2012 12:19:24 Mattias Gaertner wrote: On Thu, 16 Feb 2012 12:48:08 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 16 February 2012 04:21, Mattias Gaertner wrote: TStringGrid in messages? Yes, I believe the Messages window used to use a

[Lazarus] Lazarus slow on large files

2012-02-15 Thread Michael Van Canneyt
Hi, I was doing some test programming for android. The android SDK unit contains 68000 lines (.pas and .inc together). Opening it in the IDE (by right-clicking an identifier in my sources) virtually stops the IDE. The source of the android include file are drawn, but the scrollbars are not

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Sven Barth
Am 15.02.2012 09:14, schrieb Michael Van Canneyt: Hi, I was doing some test programming for android. The android SDK unit contains 68000 lines (.pas and .inc together). Opening it in the IDE (by right-clicking an identifier in my sources) virtually stops the IDE. The source of the android

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread michael . vancanneyt
On Wed, 15 Feb 2012, Sven Barth wrote: Am 15.02.2012 09:14, schrieb Michael Van Canneyt: Hi, I was doing some test programming for android. The android SDK unit contains 68000 lines (.pas and .inc together). Opening it in the IDE (by right-clicking an identifier in my sources) virtually

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Graeme Geldenhuys
On 15 February 2012 13:17, michael.vancanneyt@. wrote: It should be able to handle this with its fingers up its nose, I would think... I can't say I heard that one before. :-) Where can I find this unit and include file? Is it part of the FCL? -- Regards,   - Graeme -

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Everton Vieira
Em 15/02/2012, às 09:17, michael.vancann...@wisa.be escreveu: On Wed, 15 Feb 2012, Sven Barth wrote: Am 15.02.2012 09:14, schrieb Michael Van Canneyt: Hi, I was doing some test programming for android. The android SDK unit contains 68000 lines (.pas and .inc together). Opening it in

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Sven Barth
Am 15.02.2012 12:21, schrieb Graeme Geldenhuys: On 15 February 2012 13:17,michael.vancanneyt@. wrote: It should be able to handle this with its fingers up its nose, I would think... I can't say I heard that one before. :-) Where can I find this unit and include file? Is it part of the

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread zeljko
On Wednesday 15 of February 2012 12:17:00 michael.vancann...@wisa.be wrote: On Wed, 15 Feb 2012, Sven Barth wrote: Am 15.02.2012 09:14, schrieb Michael Van Canneyt: Hi, I was doing some test programming for android. The android SDK unit contains 68000 lines (.pas and .inc together).

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread stootch
W dniu 15.02.2012 09:14, Michael Van Canneyt pisze: All this is on Linux, GTK, 64-bit, Lazarus from yesterday. Has anyone else experienced similar problems ? Just checked, both files load and display seamlessly. Navigation and search work like a charm. I'm on Phenom 4 core, 4 GB RAM,

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread stootch
W dniu 15.02.2012 13:12, stootch pisze: I'm on Phenom 4 core, 4 GB RAM, Ubuntu 10.04. I forgot to mention: Lazarus from today, 64 bit as well. stootch -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Mattias Gaertner
zeljko zel...@holobit.net hat am 15. Februar 2012 um 12:44 geschrieben: On Wednesday 15 of February 2012 12:17:00 michael.vancann...@wisa.be wrote: On Wed, 15 Feb 2012, Sven Barth wrote: Am 15.02.2012 09:14, schrieb Michael Van Canneyt: Hi, I was doing some test programming for

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread michael . vancanneyt
On Wed, 15 Feb 2012, Mattias Gaertner wrote: zeljko zel...@holobit.net hat am 15. Februar 2012 um 12:44 geschrieben: On Wednesday 15 of February 2012 12:17:00 michael.vancann...@wisa.be wrote: On Wed, 15 Feb 2012, Sven Barth wrote: Am 15.02.2012 09:14, schrieb Michael Van Canneyt: Hi,

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Graeme Geldenhuys
On 15 February 2012 13:25, Everton Vieira wrote: If someone had to go on the drawing of the editor, please someone, consider to put lines to show block structure if an option is marked, like the cnpack does in delphi. I`m aware this is an complicanting of it, but is also a good feature

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Graeme Geldenhuys
On 15 February 2012 13:27, Sven Barth wrote: Here http://svn.freepascal.org/cgi-bin/viewvc.cgi/branches/jvmbackend/rtl/android/jvm/ files androidr14.pas and androidr14.inc. Thanks. Tested here under Lazarus 0.9.30.1 r33214M FPC 2.5.1 x86_64-linux-gtk 2 and it works fine performance wise.

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Sven Barth
Am 15.02.2012 13:46, schrieb Graeme Geldenhuys: On 15 February 2012 13:27, Sven Barth wrote: Here http://svn.freepascal.org/cgi-bin/viewvc.cgi/branches/jvmbackend/rtl/android/jvm/ files androidr14.pas and androidr14.inc. Thanks. Tested here under Lazarus 0.9.30.1 r33214M FPC 2.5.1

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Sven Barth
Am 15.02.2012 13:52, schrieb Sven Barth: Am 15.02.2012 13:46, schrieb Graeme Geldenhuys: On 15 February 2012 13:27, Sven Barth wrote: Here http://svn.freepascal.org/cgi-bin/viewvc.cgi/branches/jvmbackend/rtl/android/jvm/ files androidr14.pas and androidr14.inc. Thanks. Tested here under

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread michael . vancanneyt
On Wed, 15 Feb 2012, Graeme Geldenhuys wrote: On 15 February 2012 13:27, Sven Barth wrote: Here http://svn.freepascal.org/cgi-bin/viewvc.cgi/branches/jvmbackend/rtl/android/jvm/ files androidr14.pas and androidr14.inc. Thanks. Tested here under Lazarus 0.9.30.1 r33214M FPC 2.5.1

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Graeme Geldenhuys
On 15 February 2012 15:04, michael.vancanneyt@... wrote: Hm. You use a very old lazarus. If it ain't broken, don't fix it. :-) This applies doubly so to Lazarus - though I do have a couple of my own fixes or mods applied [itches need to be scratched every now and again]. But the

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Sven Barth
Am 15.02.2012 14:28, schrieb Graeme Geldenhuys: On 15 February 2012 15:04,michael.vancanneyt@... wrote: Hm. You use a very old lazarus. If it ain't broken, don't fix it. :-) This applies doubly so to Lazarus - though I do have a couple of my own fixes or mods applied [itches need to be

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Mattias Gaertner
michael.vancann...@wisa.be hat am 15. Februar 2012 um 12:17 geschrieben: [...] Though it was bearable as I moved my Android development to my rather powerful machine (because JVM compilation is rather slow and also blocks my single core main computer -.- ) and used it through X11

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Mattias Gaertner
Mattias Gaertner nc-gaert...@netcologne.de hat am 15. Februar 2012 um 15:26 geschrieben: michael.vancann...@wisa.be hat am 15. Februar 2012 um 12:17 geschrieben: [...] Though it was bearable as I moved my Android development to my rather powerful machine (because JVM

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread zeljko
On Wednesday 15 of February 2012 15:34:28 Mattias Gaertner wrote: Yes. It is TLazAccessibleObject.GetChildAccessibleObjectWithDataObject. It uses a linear search for the 10.000 items. I will replace it with an avl tree. Exact point. zeljko -- ___

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread michael . vancanneyt
On Wed, 15 Feb 2012, zeljko wrote: On Wednesday 15 of February 2012 15:34:28 Mattias Gaertner wrote: Yes. It is TLazAccessibleObject.GetChildAccessibleObjectWithDataObject. It uses a linear search for the 10.000 items. I will replace it with an avl tree. Exact point. So - as workaround

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Mattias Gaertner
zeljko zel...@holobit.net hat am 15. Februar 2012 um 16:48 geschrieben: On Wednesday 15 of February 2012 15:34:28 Mattias Gaertner wrote: Yes. It is TLazAccessibleObject.GetChildAccessibleObjectWithDataObject. It uses a linear search for the 10.000 items. I will replace it with an avl

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Felipe Monteiro de Carvalho
Thanks for doing the AVL fix =) I will study it and see if I can substitute FPList in some other projects too with AVL tree. 2012/2/15 Mattias Gaertner nc-gaert...@netcologne.de: The code explorer still needs a lot of time on this unit, because it creates 60.000 nodes and for each node it

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Massimo Soricetti
Il 15/02/2012 09:14, Michael Van Canneyt ha scritto: I was doing some test programming for android. The android SDK unit contains 68000 lines (.pas and .inc together). Opening it in the IDE (by right-clicking an identifier in my sources) virtually stops the IDE. Don't know if this is

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Mattias Gaertner
On Wed, 15 Feb 2012 20:19:11 +0100 Massimo Soricetti nottu...@quipo.it wrote: Il 15/02/2012 09:14, Michael Van Canneyt ha scritto: I was doing some test programming for android. The android SDK unit contains 68000 lines (.pas and .inc together). Opening it in the IDE (by right-clicking an

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Marco van de Voort
On Wed, Feb 15, 2012 at 09:39:35PM +0100, Mattias Gaertner wrote: I was doing some test programming for android. The android SDK unit contains 68000 lines (.pas and .inc together). Opening it in the IDE (by right-clicking an identifier in my sources) virtually stops the IDE.

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Graeme Geldenhuys
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

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Graeme Geldenhuys
On 15 February 2012 15:40, Sven Barth wrote: This does not help if some features that one needs (or wants) are only implemented in trunk... (yes, I'm aware that one could merge manually, but it's far easier for me to just use trunk) Stability is more important to me than the latest

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Massimo Soricetti
Il 15/02/2012 23:14, Graeme Geldenhuys ha scritto: Yes, it is a known problem, and why Lazarus IDE uses TTreeview in many places like the Messages dialog, instead of TStringGrid. Well, at least there is a workaround for the problem :-) -- ___

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Mattias Gaertner
On Thu, 16 Feb 2012 00:14:41 +0200 Graeme Geldenhuys graemeg.li...@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...

Re: [Lazarus] Lazarus slow on large files

2012-02-15 Thread Mattias Gaertner
On Thu, 16 Feb 2012 00:20:35 +0100 Massimo Soricetti nottu...@quipo.it wrote: Il 15/02/2012 23:14, Graeme Geldenhuys ha scritto: Yes, it is a known problem, and why Lazarus IDE uses TTreeview in many places like the Messages dialog, instead of TStringGrid. Well, at least there is a