Re: [Lazarus] Writing >1000 TBufDataset records to file is extremely slow

2017-03-27 Thread Werner Pamler via Lazarus
Am 27.03.2017 um 09:07 schrieb Marc Santhoff via Lazarus: I didn't count, but you make extensive use of the Random() function. Could that be the cause of slowness? No, Random() is called only while records are populated - this step is completed without any noticable delay. Time is measured af

[Lazarus] Writing >1000 TBufDataset records to file is extremely slow

2017-03-26 Thread Werner Pamler via Lazarus
Trying to extend the import/export example of fpspreadsheet from a dBase table to a TBufDataset I came across this issue with TBufDataset: While data are posted to the database as quickly as usual writing to file takes extremely long if there are more than a few thousand records. Run the demo

Re: [Lazarus] Cannot commit to ccr

2017-02-20 Thread Werner Pamler via Lazarus
Am 20.02.2017 um 10:18 schrieb Péter Gábor via Lazarus: Read-only access (svn update) is impossible too: Error: Error while performing action: Unable to connect to a repository at URL 'svn://svn.code.sf.net/p/lazarus-ccr/svn' Can't connect to host 'svn.code.sf.net': Kapcsolat elutasítva Hungari

[Lazarus] Cannot commit to ccr

2017-02-20 Thread Werner Pamler via Lazarus
Hi I am having a bunch of updates for ccr, but all of a sudden I cannot commit anything to sourceforge any more since yesterday. The error message is: "Commit failed (details follow): Unable to connect to a repository at URL 'https://svn.code.sf.net/p/lazarus-ccr/svn/components/colorpalette'.

Re: [Lazarus] When will the lazarus archive been gzip'd again?

2017-02-16 Thread Werner Pamler via Lazarus
Am 16.02.2017 um 08:26 schrieb Landmesser John via Lazarus: the gzip'd archive stops at May 2016. When will the Lazarus archives afterwards be gzip'd ? I use the very useful "Lazarus Mailinglist Reader" and that needs these gzip'd archives. Isn't that done automatic? Does the gzip'd stops d

Re: [Lazarus] Does anybody know a TStrinGrid-Component capable of sorting Date. Time, Float ...

2017-02-14 Thread Werner Pamler via Lazarus
Am 13.02.2017 um 20:25 schrieb John Landmesser via Lazarus: Hi, i searched some time for such a component ... in vain! So i developed myself a TStringGrid, that sorts columns with TDate, TTime, TFloat ... I can't believe that this doesn't allready exists for Lazarus?! For example i found

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

2017-01-12 Thread Werner Pamler via Lazarus
Am 11.01.2017 um 15:58 schrieb Mattias Gaertner via Lazarus: AddAscendingSequence can be slower than a normal Add. You need to check common cases, not uncommon cases like generating a 5000x5000. I did not intend to write a general test which covers all "common" cases, but a test for the most

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

2017-01-11 Thread Werner Pamler via Lazarus
Am 11.01.2017 um 14:00 schrieb Mattias Gaertner via Lazarus: The FPC sources are compiled with -O2 and without any checks. And TAvgLvlTree had a further call when comparing. I inlined that now. Please test by compiling lazutils with -O2. In my tests TAvgLvlTree is a bit faster than the old TAVLT

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

2017-01-10 Thread Werner Pamler via Lazarus
There are two versions of this AVL trees: The FPC unit avltree and the LazUtils unit avglvltree. It is the same tree, but with different names to avoid conflicts. Does this mean: I can directly replace the TAVLTree by the TAvgLvlTree and the TAVLTreeNode by the TAvgLvlTreeNode to use the LazUti

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

2017-01-10 Thread Werner Pamler via Lazarus
I think that may not be possible. Your data may be ordered already, but that does not guerantee that there is not already data inside the tree that must be ordered "inside" the group you add? I am thinking of loading a spreadsheet from file. Initially the sheet (= tree) is empty. The cells in

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

2017-01-10 Thread Werner Pamler via Lazarus
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-allocatin

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

2017-01-09 Thread Werner Pamler via Lazarus
An empty cell occupies only a nil pointer. It may sum up, though, if the table is large and sparsely populated. 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 signifi

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

2017-01-09 Thread Werner Pamler via Lazarus
Amazing. I tried the AVLTree used by fpspreadsheet and it needs 0.37 sec for 1000x1000 and 10.3 sec for 5000x5000. My tests were all "in memory", no disk access whatsoever. Bart Mine as well. I would be tempted to implement such a table in fpspreadsheet, but its problem is that it occupies

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

2017-01-09 Thread Werner Pamler via Lazarus
Am 05.01.2017 um 16:35 schrieb Bart via Lazarus: 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. -- _

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

2016-12-29 Thread Werner Pamler via Lazarus
Am 29.12.2016 um 16:59 schrieb Bart via Lazarus: Hi, I am in need of a component/clas that can hold a 2 dimensional "table" of strings. The dimensions are unknown at designtime: I read the data from a HTML table. The HTML reader provides events that give me the data of each cell, and that tell

Re: [Lazarus] TForm.GetFormImage is broken?

2016-12-26 Thread Werner Pamler via Lazarus
Please try this: var bmp: TBitmap; begin bmp:=Form1.GetFormImage; try *bmp.Canvas.Changed;* bmp.SaveToFile(ExtractFilePath(Application.ExeName)+'form.bmp'); finally FreeAndNil(bmp); end; end; But Delphi does not require the bmp.Canvas.Changed. Shouldn't it be added to the GetFormI

Re: [Lazarus] Why is SAX so slow?

2016-12-26 Thread Werner Pamler via Lazarus
Sorry to not answer your question, but, fpspreadsheet looks very intereresting and first time I really looked.. So it is a spreadsheet without using any MS COM or activex to utilize ms excel? A native spreadsheet for lazarus? Cool! Something I'll probably need some time. Any crashes or major is

Re: [Lazarus] "Some files have changed on disk"

2016-12-02 Thread Werner Pamler via Lazarus
Am 02.12.2016 um 23:02 schrieb Mattias Gaertner via Lazarus: Fixed. Please test. Working correctly again. Thanks -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus

[Lazarus] "Some files have changed on disk"

2016-12-02 Thread Werner Pamler via Lazarus
For some time, the IDE of trunk is displaying an annyoing message "Some files have changed on disk" and prompts to select either "Ignore all disk changes" or "Reload checked files from disk" if an unsaved new project is compiled. Steps to reproduce: - Create new project, add components and c

Re: [Lazarus] Clarification about VirtualTreeView repositories (lazarus-ccr/virtualtreeview-new deprecation)

2016-11-22 Thread Werner Pamler via Lazarus
Am 22.11.2016 um 19:05 schrieb Luiz Americo Pereira Camara via Lazarus: 2016-11-22 14:44 GMT-03:00 Werner Pamler via Lazarus mailto:lazarus@lists.lazarus-ide.org>>: Luiz, I like your idea to add a non-commented hint to the main source file. So every user will get notif

Re: [Lazarus] Clarification about VirtualTreeView repositories (lazarus-ccr/virtualtreeview-new deprecation)

2016-11-22 Thread Werner Pamler via Lazarus
Am 22.11.2016 um 18:28 schrieb Luiz Americo Pereira Camara via Lazarus: Currently there are three repositories of VirtualTreeView LCL port. In Lazarus-CCR: virtualtreeview: first port, long unmaintained virtualtreeview-new: original repository of the current port In GitHub: https://github.com/

Re: [Lazarus] Help System with Chromium Embedded component

2016-11-08 Thread Werner Pamler via Lazarus
Am 08.11.2016 um 15:56 schrieb Martok via Lazarus: Hi, I may have missed this point in the discussion, but would it not make more sense to get a native HTML component (either from IPro or the THTML port) to the point where it can provide everything needed? THTML (my favourite) already has fairly

Re: [Lazarus] Memo.Lines.Add seems to be slow with Lazarus 1.6

2016-11-02 Thread Werner Pamler via Lazarus
I tested on Win 10 (using the code of the first post in this thread): - 23 sec on Laz trunk / fpc 3.0 - 23 sec on Laz 1.6 / fpc 3.0 - 23 sec Laz trunk / fpc 2.6.4 - 2.2 sec on Laz 1.44 / fpc 2.6.4 - 1.4 sec on Delphi Berlin 10.1 Using Lazarus trunk I could get a good boost by adding the strings

Re: [Lazarus] Windows 10 force any non-white background color to White

2016-10-15 Thread Werner Pamler via Lazarus
Am 15.10.2016 um 12:04 schrieb Dennis via Lazarus: Attached is a simple test project. Within the zip are 2 screen capture of the same program running in win 7 64 bit and Win 10 64 bit. The project was created with Lazarus 1.7; fpc 3.1.1 SVN 52643. For me, the frame is white in both Win7 and Win

Re: [Lazarus] Anyone has experience controlling Excel from FPC/delphi via OLE Automation?

2016-10-05 Thread Werner Pamler via Lazarus
I am having problem using the Type Library generated. Don't know how to use it. I tried to 'learn' from old Delphi 5 source code (the only version of Delphi I have) that worked with Excel 2000 but found that the type library are so different from the one generated by FPC. I try to avoid that

Re: [Lazarus] TPageControl OnChange calling issue

2016-10-04 Thread Werner Pamler via Lazarus
Could somebody add Michael to the contributor's list? Am 03.10.2016 um 22:53 schrieb Bart via Lazarus: On 10/3/16, Michael W. Vogel via Lazarus wrote: OT reply: I can't see you on contributors list? Bart -- ___ Lazarus mailing list Lazarus@lists.

<    1   2   3