[fpc-devel] Performance of string handling in trunk

luiz americo pereira camara luizmed at oi.com.br
Thu Jun 27 03:54:27 CEST 2013


2013/6/21 Sergei Gorelkin <sergei_gorelkin at mail.ru>:

> I've profiled the code and found no conversions taking place. All the
> slowdown appears to be caused by other reasons, hard to tell the topmost
> contributor. What catches the eye is the large amount of calls to
> UniqueString, and the fact that SetCodePage goes through implicit
> try..finally block even if it does not need to convert the string.
>

Seems that Florian changed SetCodePage to avoid implicit try finally.

It improved the performance slightly but still a lot slower than 2.6.X .

See: http://forum.lazarus.freepascal.org/index.php/topic,21223.msg124551.html#msg124551

Luiz



More information about the fpc-devel mailing list