The compiler is pretty good at optimizing generated code and while it might have been fruitful to count cycles for old processors it is pretty much undoable to optimize for modern processors to such an extent that is becomes noticeable. Ofc for your particular use-case and setup you might be able to optimize the crap out of things but that doesn't guarantee for the same code to run as smooth on another setup or other use-case.
Компилятор FPC, к сожаленью, не очень хорош в оптимизации кода. Особенно это видно для ARM32/ARM64 архитектруры. Я скидывал проблемы с кодом в багтрекер, его ни кто не рассматривал. Не хотите это исправлять, значит не надо. (да, я знаю что это не просто всё исправить, и вполне возможно показанные мной проблемы взяли отметили для исправления в будущем).
Извиняюсь за оффтоп.
------------------------------------------------------
Google translate:
The compiler is pretty good at optimizing generated code and while it might have been fruitful to count cycles for old processors it is pretty much undoable to optimize for modern processors to such an extent that is becomes noticeable. Ofc for your particular use-case and setup you might be able to optimize the crap out of things but that doesn't guarantee for the same code to run as smooth on another setup or other use-case.
The FPC compiler, unfortunately, is not very good at optimizing code. This is especially noticeable for the ARM32/ARM64 architecture. I posted problems with the code in the bug tracker, but no one looked at it. If you don't want to fix it, then you don't have to. (yes, I know that it’s not easy to fix everything, and it’s quite possible that the problems I showed were taken and noted for correction in the future).
Sorry for the offtopic.