[fpc-pascal] Problem with code aligning (probably)
Vojtěch Čihák
vojtech.cihak at atlas.cz
Wed Oct 19 15:29:49 CEST 2022
Hi,
I wrote a generic class to test sorting algorithms and also benchmarking them. I have following problem:
When I change even a single line of code anywhere in that unit, even in an unrelated method, all ~40 algorithms become a little slower or a little faster. I observed it has two levels of speed: 100% and 90%. Just these values, never 95%, it is not random.
I looked around and found: https://www.freepascal.org/docs-html/prog/progsu9.html
but still I cannot find which items and what values should I set. (I guess it should be LOOP, PROC or JUMP?)
My program is Lazarus single window with many buttons which specializes generic class of that unit.
I'm still on Core2Duo with 64-bit Linux.
Lazarus 2.3.0 (rev main-2_3-2118-gb5858164db) FPC 3.3.1 x86_64-linux-qt
Thanks for help.
More information about the fpc-pascal
mailing list