Forum > Other

Code optimization

(1/1)

wildhemp:
Hi,

I have a program with a lot of calculations. I've prted it to lazarus, and it happend, that the version built with delphi is 2.5 times faster. I've tried to play with the compiler options, like code optimization and se the target cpu, but nothing happend. Can I build a faster version somehow?

Thx,
Wildhemp

Adam.Pilorz:
Well, many people works on system, wich optimizes the code written in Delphi. On your position I would try to optimize it myself, I mean try to lower it's processor usage and time complexity.

Anonymous:
Ok, but it's an optimized code. I think that the real problem is, that I can't compile it to a specified processor. Is there a way to compile my code to i686 platform? Maybe I'm worng, and the fpc compiles my code to the selected cpu, but if it's true, than why is it as slow as I compile it to i386?

Wildhep

Vincent Snijders:
In the compiler options, Code Tab, Target Processor GroupBox you can set the target processor. I don't how much fpc does with this setting.

Navigation

[0] Message Index

Go to full version