FPC optimizations have never been aggressive, despite the trunk has several new optimizations with -O4. Since you're stuck with 2.2.2, and your problem is on string operation*, I don't think there's anything else you can do. Note that those -O thing won't suddenly boost your code, there are many factors affecting it. It could be your code, the compiler, or anything else.
*: in case your guess is right that the bottleneck is on the string operation > There used to be keyhole optimising in fpc but don't see that in v2.2.2 keyhole? Did you mean peephole? I don't know whether it exists in 2.2.2, but it does exist. It works only on x86 AFAIK and still, you won't get much difference either (it does optimize, but the factor won't be great) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/optimisation-v2-2-2-tp5713255p5713257.html Sent from the Free Pascal - General mailing list archive at Nabble.com. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal