Re: [Lazarus] Timing of all compiler options on slow machines

2013-09-17 Thread Juha Manninen
The options are now read in a thread which is started when the "Other" page is opened. It is not perfect still as sometimes the parsed data is not used, but who cares... Please test. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-25 Thread waldo kitty
On 8/25/2013 04:24, Juha Manninen wrote: On Sun, Aug 25, 2013 at 4:04 AM, waldo kitty wrote: this define? TimeAllCompilerOptions Yes. thanks... i believe so and will remove it from my script for further testing... May I ask, why you need the script? I build Lazarus often but I don't nee

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-25 Thread Juha Manninen
On Sun, Aug 25, 2013 at 2:51 PM, Ludo Brands wrote: > In that case, splitting the timing values between reading/rendering for > single core cpu's (the atom is single core with hyper-threading) doesn't > make sense. Rendering is very much cpu bound in this case. Rendering the GUI must be done in t

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-25 Thread Mattias Gaertner
On Sun, 25 Aug 2013 13:51:03 +0200 Ludo Brands wrote: >[...] > In that case, splitting the timing values between reading/rendering for > single core cpu's (the atom is single core with hyper-threading) doesn't > make sense. Rendering is very much cpu bound in this case. > > On an i7 4 core I get

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-25 Thread Ludo Brands
On 08/25/2013 01:00 PM, Mattias Gaertner wrote: > On Sun, 25 Aug 2013 12:06:31 +0200 > Ludo Brands wrote: >> On an atom based system linux gtk2, 2 runs: >> RunTool /home/ludo/fpc_hg/trunk/bin/fpc.sh "-Tlinux" "-Pi386" "-i" >> RunTool /home/ludo/fpc_hg/trunk/bin/fpc.sh "-Tlinux" "-Pi386" "-h" >> A

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-25 Thread Mattias Gaertner
On Sun, 25 Aug 2013 12:06:31 +0200 Ludo Brands wrote: > On 08/25/2013 10:24 AM, Juha Manninen wrote: > > On Sun, Aug 25, 2013 at 4:04 AM, waldo kitty > > wrote: > >> this define? TimeAllCompilerOptions > > > > Yes. > > > >> i believe so and will remove it from my script for further testing...

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-25 Thread Ludo Brands
On 08/25/2013 10:24 AM, Juha Manninen wrote: > On Sun, Aug 25, 2013 at 4:04 AM, waldo kitty wrote: >> this define? TimeAllCompilerOptions > > Yes. > >> i believe so and will remove it from my script for further testing... > > May I ask, why you need the script? I build Lazarus often but I don't

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-25 Thread Juha Manninen
On Sun, Aug 25, 2013 at 4:04 AM, waldo kitty wrote: > this define? TimeAllCompilerOptions Yes. > i believe so and will remove it from my script for further testing... May I ask, why you need the script? I build Lazarus often but I don't need a script for it. > question: with the timings in th

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-24 Thread waldo kitty
On 8/24/2013 05:36, Juha Manninen wrote: On Tue, Aug 20, 2013 at 7:11 PM, Lukasz Sokol wrote: I for one would welcome having this info not as a 'message box' but rather as a status bar information (like ones you get on certain dynamic sites: this page was rendered in %d ms (options readout %d m

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-24 Thread Juha Manninen
On Tue, Aug 20, 2013 at 7:11 PM, Lukasz Sokol wrote: > I for one would welcome having this info not as a 'message box' but > rather as a status bar information (like ones you get on certain dynamic > sites: this page was rendered in %d ms (options readout %d ms, render %d ms) ) > (and an option to

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-24 Thread Juha Manninen
One more thing about the timings: The reading time includes 2 invocations of FPC, one for "fpc -i", another for "fpc -h". It also includes the parsing but it is very fast. My timings of < 50 ms means that one run of FPC takes < 25 ms. Juha -- ___ Lazaru

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-22 Thread waldo kitty
On 8/22/2013 08:14, Juha Manninen wrote: On Thu, Aug 22, 2013 at 2:50 PM, waldo kitty wrote: blink... not sure what to do to make it faster... Replacing Windows with Linux would make it faster. See my earlier timings for a much slower P2 233 MHz machine. ROTFLMAO!!! i love it! :) Sorry, I

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-22 Thread waldo kitty
On 8/22/2013 07:42, Sven Barth wrote: On my above mentioned 800 MHz system "fpc -i" takes ~445ms and "fpc -h" ~540ms for a 2.6.2 fpc.exe. If I now use a 2.6.2 ppc386.exe (which is called by fpc.exe) the time is ~240ms and ~315ms respectively. I've attached the lpr if someone wants to test him-/h

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-22 Thread Sven Barth
Am 22.08.2013 14:38, schrieb waldo kitty: On 8/22/2013 07:42, Sven Barth wrote: Am 21.08.2013 17:45, schrieb Sven Barth: Maybe I'll need to test this on my mobile development computer as well (800 MHz Intel Stealy processor, 1 GB RAM, Windows 7) ^^ I've written a simple application that uses T

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-22 Thread waldo kitty
On 8/22/2013 07:42, Sven Barth wrote: Am 21.08.2013 17:45, schrieb Sven Barth: Maybe I'll need to test this on my mobile development computer as well (800 MHz Intel Stealy processor, 1 GB RAM, Windows 7) ^^ I've written a simple application that uses TProcess to start "fpc -i" and "fpc -h" and

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-22 Thread Sven Barth
Am 22.08.2013 14:14, schrieb Juha Manninen: On Thu, Aug 22, 2013 at 2:50 PM, waldo kitty wrote: blink... not sure what to do to make it faster... Replacing Windows with Linux would make it faster. See my earlier timings for a much slower P2 233 MHz machine. I *know* that process startup time o

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-22 Thread Juha Manninen
On Thu, Aug 22, 2013 at 2:50 PM, waldo kitty wrote: > blink... not sure what to do to make it faster... Replacing Windows with Linux would make it faster. See my earlier timings for a much slower P2 233 MHz machine. Sorry, I could not resist writing this... You may have other reasons for using Wi

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-22 Thread waldo kitty
On 8/22/2013 06:58, Martin wrote: The system was particular busy (another fpc (different exe / different version) was running). - using 1 of 2 cpu => but the other was idle, so enough cpu power - still 1Gb of RAM free - but it would have prevented anything useful being in the OS disc cache becaus

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-22 Thread Sven Barth
Am 21.08.2013 17:45, schrieb Sven Barth: Maybe I'll need to test this on my mobile development computer as well (800 MHz Intel Stealy processor, 1 GB RAM, Windows 7) ^^ I've written a simple application that uses TProcess to start "fpc -i" and "fpc -h" and reads it standard and error output. The

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-22 Thread waldo kitty
On 8/22/2013 05:56, Juha Manninen wrote: On Thu, Aug 22, 2013 at 3:50 AM, waldo kitty wrote: after preventing all additional apps from starting, including my firewall and my avast anti-virus, i saw 1.047 seconds for the reading of the compiler options... unloading lazarus and immediately reload

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-22 Thread Martin
On 20/08/2013 14:13, Juha Manninen wrote: Attention waldo kitty and others with slow machines. I added code for timing the reading of all compiler options and the rendering the GUI for them. It shows a MessageBox after reading and rendering. I don't use the define, it should log to console, no

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-22 Thread Juha Manninen
On Thu, Aug 22, 2013 at 3:50 AM, waldo kitty wrote: > after preventing all additional apps from starting, including my firewall > and my avast anti-virus, i saw 1.047 seconds for the reading of the compiler > options... unloading lazarus and immediately reloading it and trying again > gave me a (c

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-21 Thread waldo kitty
On 8/21/2013 12:48, waldo kitty wrote: On 8/21/2013 11:45, Sven Barth wrote: [...] Could you also test without antivirus and could you also test a second time (so that the executable might now reside inside the cache). i will try... currently i've just also had some weirdness come up and am h

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-21 Thread waldo kitty
On 8/21/2013 11:45, Sven Barth wrote: On 20.08.2013 21:23, waldo kitty wrote: as a test, i unloaded all non-essential apps and left only my avast anti-virus running... my script says it takes 15 minutes 35 seconds for make clean tortoise update and the two above make and lazbuild functions th

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-21 Thread Sven Barth
On 20.08.2013 21:23, waldo kitty wrote: as a test, i unloaded all non-essential apps and left only my avast anti-virus running... my script says it takes 15 minutes 35 seconds for make clean tortoise update and the two above make and lazbuild functions then i started lazrus and went t

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-21 Thread waldo kitty
On 8/21/2013 10:03, Juha Manninen wrote: On Tue, Aug 20, 2013 at 10:23 PM, waldo kitty wrote: then i started lazrus and went to Projects->Options->other... the window that popped up says Reading compiler options took: 00:14.125 then i clicked on the [All options] button and the box that po

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-21 Thread Juha Manninen
On Tue, Aug 20, 2013 at 10:23 PM, waldo kitty wrote: > then i started lazrus and went to Projects->Options->other... the window > that popped up says > > Reading compiler options took: 00:14.125 > > then i clicked on the [All options] button and the box that popped up says > > Rendering compil

Re: [Lazarus] Timing of all compiler options on slow machines [OT]

2013-08-21 Thread Lukasz Sokol
On 20/08/13 20:23, waldo kitty wrote: > On 8/20/2013 09:13, Juha Manninen wrote: [...] >> >> P.S. Computers are truely getting faster! This 233 MHz Pentium 2 >> machine is less than 20 years old (?) and was used for demanding >> CAD work in a big company. I added memory later, it had maybe 256 >>

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-20 Thread waldo kitty
On 8/20/2013 09:13, Juha Manninen wrote: Attention waldo kitty and others with slow machines. I added code for timing the reading of all compiler options and the rendering the GUI for them. It shows a MessageBox after reading and rendering. It is enabled when Lazarus is built with define TimeAll

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-20 Thread Sven Barth
On 20.08.2013 17:48, Juha Manninen wrote: I believe this is a common problem with many computers. The CPUs generate so much heat that their cooling is a delicate matter. I need to clean my laptop every half year or so or otherwise the dust layer at the fan grid will be so thick that no air goe

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-20 Thread Lukasz Sokol
On 20/08/13 14:13, Juha Manninen wrote: > Attention waldo kitty and others with slow machines. > [...] > Now testing the reading of all options from FPC in the "Other" page > of compiler options GUI: In this slow machine the reading still takes > less than a second! Sometimes it takes only half a

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-20 Thread Juha Manninen
On Tue, Aug 20, 2013 at 5:57 PM, Mattias Gaertner wrote: > On Tue, 20 Aug 2013 16:58:21 +0300 > Juha Manninen wrote: > >> My main machine is rather old, too, maybe 7 years:: >> AMD Phenom(tm) 8650 Triple-Core Processor > > AMD released it only 5 years ago. Time traveling? Oops. I bought it as a

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-20 Thread Mattias Gaertner
On Tue, 20 Aug 2013 16:58:21 +0300 Juha Manninen wrote: > My main machine is rather old, too, maybe 7 years:: > AMD Phenom(tm) 8650 Triple-Core Processor AMD released it only 5 years ago. Time traveling? > It reads the options in < 50 ms. Rendering the GUI takes 100 ms. Mattias -- __

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-20 Thread Juha Manninen
My main machine is rather old, too, maybe 7 years:: AMD Phenom(tm) 8650 Triple-Core Processor It reads the options in < 50 ms. Rendering the GUI takes 100 ms. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.f

Re: [Lazarus] Timing of all compiler options on slow machines

2013-08-20 Thread Sven Barth
Am 20.08.2013 15:14 schrieb "Juha Manninen" : > In waldo kitty's faster machine it took much longer. It means its > Windows is badly screwed somehow. Windows executable startup *is* much slower than on Linux, because especially the Win32 subsystem is doing quite some house keeping with IPC, etc. t

[Lazarus] Timing of all compiler options on slow machines

2013-08-20 Thread Juha Manninen
Attention waldo kitty and others with slow machines. I added code for timing the reading of all compiler options and the rendering the GUI for them. It shows a MessageBox after reading and rendering. It is enabled when Lazarus is built with define TimeAllCompilerOptions. Go to Tools -> Configure "