Re: [fpc-pascal] Worse performance with 64bit binary

2020-07-25 Thread Gabor Boros
2020. 07. 25. 18:42 keltezéssel, Florian Klämpfl írta: Am 25.07.20 um 16:49 schrieb Gabor Boros: Hi All, I cannot show the real application but attached a simple example. If compile with 3.2.0 "ppc386.exe -O3 test.pas" the execution time of the resulting example binary is 0.4s, and 2.2s if com

Re: [fpc-pascal] Worse performance with 64bit binary

2020-07-25 Thread Graeme Geldenhuys
On 25/07/2020 5:42 pm, Florian Klämpfl wrote: > Missed optimization. I fixed it in trunk. Damn that was quick! Nicely done. :-) Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Re: [fpc-pascal] Worse performance with 64bit binary

2020-07-25 Thread Florian Klämpfl
Am 25.07.20 um 16:49 schrieb Gabor Boros: Hi All, I cannot show the real application but attached a simple example. If compile with 3.2.0 "ppc386.exe -O3 test.pas" the execution time of the resulting example binary is 0.4s, and 2.2s if compile with "ppcx64.exe -O3 test.pas". Any idea why? Mi

[fpc-pascal] Worse performance with 64bit binary

2020-07-25 Thread Gabor Boros
Hi All, I cannot show the real application but attached a simple example. If compile with 3.2.0 "ppc386.exe -O3 test.pas" the execution time of the resulting example binary is 0.4s, and 2.2s if compile with "ppcx64.exe -O3 test.pas". Any idea why? Gabor {$Mode objfpc} uses SysUtils; functio

Re: [fpc-pascal] Is there a FindAllDirs command like FindAllFiles?

2020-07-25 Thread Bo Berglund via fpc-pascal
On Sat, 25 Jul 2020 00:08:01 +0200, Bo Berglund via fpc-pascal wrote: >But I would like to enumerate the subdirectories themselves (without >the content). Turns out that there is a procedure FindAllDirectories() in fileutil... It does exactly what I need. :) I wonder why Google failed to bring

Re: [fpc-pascal] Is there a FindAllDirs command like FindAllFiles?

2020-07-25 Thread Bo Berglund via fpc-pascal
On Sat, 25 Jul 2020 10:51:37 +0200, Bart via fpc-pascal wrote: >On Sat, Jul 25, 2020 at 12:24 AM Bo Berglund via fpc-pascal > wrote: > >> But I would like to enumerate the subdirectories themselves (without >> the content). > >Take a look at how FindAllFiles is implemented. >It should be relative

Re: [fpc-pascal] Is there a FindAllDirs command like FindAllFiles?

2020-07-25 Thread Bart via fpc-pascal
On Sat, Jul 25, 2020 at 12:24 AM Bo Berglund via fpc-pascal wrote: > But I would like to enumerate the subdirectories themselves (without > the content). Take a look at how FindAllFiles is implemented. It should be relatively easy to modify it so that it discards files and only adds folders to t