Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Mattias Gaertner via fpc-devel
On Wed, 1 Mar 2023 15:02:25 +0100 (CET) Michael Van Canneyt via fpc-devel wrote: > On Wed, 1 Mar 2023, Mattias Gaertner via fpc-devel wrote: > > > On Wed, 1 Mar 2023 14:10:28 +0100 > > Sven Barth via fpc-devel wrote: > > > >> [...] > >> > I can't remember the proverb that Florian used, but

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Michael Van Canneyt via fpc-devel
On Wed, 1 Mar 2023, Mattias Gaertner via fpc-devel wrote: On Wed, 1 Mar 2023 14:10:28 +0100 Sven Barth via fpc-devel wrote: [...] > I can't remember the proverb that Florian used, but it essentially > boils down to very small changes, individually not amounting to > much, but which accumula

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Mattias Gaertner via fpc-devel
On Wed, 1 Mar 2023 14:10:28 +0100 Sven Barth via fpc-devel wrote: >[...] > > I can't remember the proverb that Florian used, but it essentially > > boils down to very small changes, individually not amounting to > > much, but which accumulate into a noticable difference when in > > large numbers.

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Martin Frb via fpc-devel
On 01/03/2023 14:22, J. Gareth Moreton via fpc-devel wrote: On 01/03/2023 13:11, Martin Frb via fpc-devel wrote: Hence testing back to  3.2.3 ( unfortunately 3.2.2 has a bug that matters in this code) Also, I didn't expect any huge diffs, just wanted to see if anything can be noted at all. (a

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread J. Gareth Moreton via fpc-devel
On 01/03/2023 13:10, Sven Barth wrote: It's a German proverb: "Mühsam ernährt sich das Eichhörnchen" Regards, Sven Thanks Sven! Kit ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread J. Gareth Moreton via fpc-devel
On 01/03/2023 13:11, Martin Frb via fpc-devel wrote: Hence testing back to  3.2.3 ( unfortunately 3.2.2 has a bug that matters in this code) Also, I didn't expect any huge diffs, just wanted to see if anything can be noted at all. (and if lucky, in that test I run) I did a test on a more lim

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Martin Frb via fpc-devel
On 01/03/2023 12:25, J. Gareth Moreton via fpc-devel wrote: My peephole optimisations mostly save only a handful of cycles each time which probably won't add up to much for a relatively short test.  The most major optimisation I can think of, although I'm not quite sure when it was merged, is t

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Sven Barth via fpc-devel
J. Gareth Moreton via fpc-devel schrieb am Mi., 1. März 2023, 12:25: > My peephole optimisations mostly save only a handful of cycles each time > which probably won't add up to much for a relatively short test. The > most major optimisation I can think of, although I'm not quite sure when > it w

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Martin Frb via fpc-devel
On 01/03/2023 11:55, Adriaan van Os via fpc-devel wrote: That may have been "-Performance Matters- by Emery Berger". By I find it a nonsense video. Only that last year, I had some code where it happened to me. Some code (that had no change in itself, other than a routine above it (which was

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Martin Frb via fpc-devel
On 01/03/2023 11:47, Bart via fpc-devel wrote: On Wed, Mar 1, 2023 at 11:33 AM Martin Frb via fpc-devel wrote: So for a while now fpc 3.3.1 receives new optimizations => which is great / big fan of it. And hence I thought, lets see how much of an impact they have. And in my test, they had non

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread J. Gareth Moreton via fpc-devel
My peephole optimisations mostly save only a handful of cycles each time which probably won't add up to much for a relatively short test.  The most major optimisation I can think of, although I'm not quite sure when it was merged, is the method of replacing divisions by a constant with an equiv

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Adriaan van Os via fpc-devel
Bart via fpc-devel wrote: On Wed, Mar 1, 2023 at 11:33 AM Martin Frb via fpc-devel wrote: So for a while now fpc 3.3.1 receives new optimizations => which is great / big fan of it. And hence I thought, lets see how much of an impact they have. And in my test, they had none :( Optimizations

Re: [fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Bart via fpc-devel
On Wed, Mar 1, 2023 at 11:33 AM Martin Frb via fpc-devel wrote: > So for a while now fpc 3.3.1 receives new optimizations => which is > great / big fan of it. > > And hence I thought, lets see how much of an impact they have. And in my > test, they had none :( Optimizations beyond O2 (or even O1

[fpc-devel] Curious about the effect of all the new optimizations....

2023-03-01 Thread Martin Frb via fpc-devel
So for a while now fpc 3.3.1 receives new optimizations => which is great / big fan of it. And hence I thought, lets see how much of an impact they have. And in my test, they had none :( Wondering if any one else has measured them? My tests: Win-10 64 bit 3.3.1  905c485ff413cd48f98891e2075c81