[fpc-pascal] Food for thought - language string improvement
Michael Van Canneyt
michael at freepascal.org
Mon Jul 10 13:18:58 CEST 2017
On Mon, 10 Jul 2017, Felipe Monteiro de Carvalho wrote:
> On Mon, Jul 10, 2017 at 1:08 PM, Michael Van Canneyt
> <michael at freepascal.org> wrote:
>> The code is definitely not the same. In each case, it was measured. There is
>> a 10% performance loss.
> I'd love a source on this one. I guess you mean in Free Pascal?
The classes unit can be recompiled to use the fgl (well, that used to be so)
as a basis. When using the resulting list and stringlist, there was a 10%
performance loss. The main reason - If I recall correctly - was that the fgl
needs to resort to move() operations instead of direct assignments.
More information about the fpc-pascal