Re: [Lazarus] Question about TRichMemo

2016-11-02 Thread silvioprog via Lazarus
On Wed, Nov 2, 2016 at 9:09 PM, Dmitry Boyarintsev via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > On Wed, Nov 2, 2016 at 7:25 PM, silvioprog via Lazarus < > lazarus@lists.lazarus-ide.org> wrote: > >> >> Done: http://bugs.freepascal.org/view.php?id=30852 . >> > Yep, totally fine. Should acce

Re: [Lazarus] Question about TRichMemo

2016-11-02 Thread Dmitry Boyarintsev via Lazarus
On Wed, Nov 2, 2016 at 7:25 PM, silvioprog via Lazarus < lazarus@lists.lazarus-ide.org> wrote: > > Done: http://bugs.freepascal.org/view.php?id=30852 . > Yep, totally fine. Should accept it tonight. Thank you. ps. this component should be installed as default in Lazarus IDE. ;-) > It's not my cal

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

2016-11-02 Thread Luiz Americo Pereira Camara via Lazarus
2016-11-02 19:24 GMT-03:00 Michael W. Vogel via Lazarus < lazarus@lists.lazarus-ide.org>: > I have made a bug entry and added there a first patch (its not the final > one, but its late here now). Can you check, if it fixes the speed on your > OS too (I have tested only Windows 7 for now)? > Congr

Re: [Lazarus] Question about TRichMemo

2016-11-02 Thread silvioprog via Lazarus
On Wed, Nov 2, 2016 at 12:38 AM, Dmitry Boyarintsev < skalogryz.li...@gmail.com> wrote: > On Tue, Nov 1, 2016 at 10:50 PM, silvioprog via Lazarus < > lazarus@lists.lazarus-ide.org> wrote: > >> Anyway, I'm going to send some patches to improve this component ... >> > Thank you! Looking forward! > >

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

2016-11-02 Thread Graeme Geldenhuys via Lazarus
On 2016-11-02 22:24, Michael W. Vogel via Lazarus wrote: > I have made a bug entry and added there a first patch (its not the final > one, but its late here now) I didn't look at what exactly the patch does, but on first testing it reduced the running time from 9000+ milliseconds to 250ms. So tha

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

2016-11-02 Thread Michael W. Vogel via Lazarus
I have made a bug entry and added there a first patch (its not the final one, but its late here now). Can you check, if it fixes the speed on your OS too (I have tested only Windows 7 for now)? http://bugs.freepascal.org/view.php?id=30851 Thank you for your feedback! Kind regards Michl Am

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

2016-11-02 Thread Graeme Geldenhuys via Lazarus
On 2016-11-02 18:43, Luca Olivetti via Lazarus wrote: > Maybe it's overkill, but it's necessary under windows, Welcome to the benefits of custom components where you can easily outperform native components. Just curious, has anybody tried the TMemo of LCL-CustomDrawn widgetset? I know the LCL-Cus

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

2016-11-02 Thread Luca Olivetti via Lazarus
El 02/11/16 a les 14:47, Graeme Geldenhuys via Lazarus ha escrit: On 2016-11-02 13:36, Luca Olivetti via Lazarus wrote: Try using a TSynEdit instead of a TMemo. That's a bit of overkill in most cases, plus - as Bernd clearly point out - there is a TMemo regression bug in LCL. Maybe it's over

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

2016-11-02 Thread Mattias Gaertner via Lazarus
> Werner Pamler via Lazarus hat am 2. November > 2016 um 16:56 geschrieben: > > 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

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

2016-11-02 Thread Bernd Mueller via Lazarus
On 11/02/2016 04:56 PM, Werner Pamler via Lazarus wrote: 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 Laz

Re: [Lazarus] FPC on Rpi3 executable module sizes

2016-11-02 Thread Sascha Hestermann via Lazarus
Am 02.11.2016 um 15:59 schrieb Ken Kashmarek via Lazarus: > I used Bo Berglund's script to install FPC (including Lasarus) on my RPi3. > That script is long and complicated and making changes to it would be in his > domain. I understand that changing the installation can be a bit complicated. But

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] FPC on Rpi3 executable module sizes

2016-11-02 Thread Ken Kashmarek via Lazarus
I used Bo Berglund's script to install FPC (including Lasarus) on my RPi3. That script is long and complicated and making changes to it would be in his domain. I suspect there are some issues with any options dealing with smart linking and debug symbols. I hope he gets a chance to review the scri

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

2016-11-02 Thread Graeme Geldenhuys via Lazarus
On 2016-11-02 13:36, Luca Olivetti via Lazarus wrote: > Try using a TSynEdit instead of a TMemo. That's a bit of overkill in most cases, plus - as Bernd clearly point out - there is a TMemo regression bug in LCL. Regards, Graeme -- ___ Lazarus mail

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

2016-11-02 Thread Bernd Mueller via Lazarus
On 11/02/2016 02:36 PM, Luca Olivetti via Lazarus wrote: Try using a TSynEdit instead of a TMemo. I did not try with lazarus 1.6, but with 1.4.4 it is 9ms vs 143 ms for a tmemo. On windows tmemo is even slower, while TSynEdit isn't. Thank you for your suggestion. With Lazarus 1.6, TSynEdit ta

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

2016-11-02 Thread Luca Olivetti via Lazarus
El 02/11/16 a les 13:27, Bernd Mueller via Lazarus ha escrit: Hello, with Lazarus 1.6 (FPC 3.0.0 i386-linux-gtk 2) filling a Memo with 1 lines takes about 18 seconds on my system. Doing the same with Lazarus 1.4.0 (FPC 2.6.4 i386-linux-gtk 2) takes about 193 ms. I cannot believe, that Lazaru

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

2016-11-02 Thread Graeme Geldenhuys via Lazarus
On 2016-11-02 12:27, Bernd Mueller via Lazarus wrote: > with Lazarus 1.6 (FPC 3.0.0 i386-linux-gtk 2) filling a Memo with 1 > lines takes about 18 seconds on my system. I can confirm that. Using 64-bit Lazarus (trunk from a week ago) with FPC 3.0.0 and LCL-GTK2. On my Intel i7-3550K CPU @ 3.5

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

2016-11-02 Thread Bernd Mueller via Lazarus
Hello, with Lazarus 1.6 (FPC 3.0.0 i386-linux-gtk 2) filling a Memo with 1 lines takes about 18 seconds on my system. Doing the same with Lazarus 1.4.0 (FPC 2.6.4 i386-linux-gtk 2) takes about 193 ms. I cannot believe, that Lazarus 1.6 should be nearly 90 times slower than 1.4.0. I am wo

Re: [Lazarus] Non UTF8 func in LCL

2016-11-02 Thread Mattias Gaertner via Lazarus
> Alexey via Lazarus hat am 1. November 2016 um > 10:44 geschrieben: > > hi > I found (CudaText finder, 16 matches) of non UTF8 func Lazarus Find-in-Files found the same. > GetEnvironmentVariable (no suffix UTF8) in lcl. > Consider to replace with GetEnvironmentVariableUTF8. > Img of found li

Re: [Lazarus] Suggestion for Object Inspector

2016-11-02 Thread Péter Gábor via Lazarus
There are a lot of completion related settings in the IDE, some for the identifiers. You can see them if you type the word "completion" in the filter field of the IDE options. I think that the Editor can do what you need: 1.: Tools / Options / Editor / Completion and Hints 2.: Tools / Options / C