[fpc-pascal] Efficient String concatenation

John Lee johnelee0 at gmail.com
Wed Oct 30 12:59:40 CET 2013


jonas wrote
'
It may indeed be possible to handle this in the compiler.

> What about llvm - (coming soon to fpc apparently) - would that fix it?

Not in the least. "soon" is also a gross overstatement.
'
What's the size/difficulty of compiler spotting this? Suppose it needs to
be able to 'look ahead' by few statements  - which I'd thought it does
already to some extent.

Think I saw email where you said 'few' months - that is soon in context of
fpc and even more in the context of significant fpc changes, so not 'gross
overstatement'!

John



On 29 October 2013 17:32, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:

> On 29/10/13 18:17, John Lee wrote:
>
>  On 29 October 2013 13:22, Graeme Geldenhuys <graeme at geldenhuys.co.uk>
>> wrote:
>>
>>  This is a very impressive little blog about efficient string
>>> concatenation
>>> in Delphi. But it also applies to Free Pascal.
>>> http://www.delphitools.info/**2013/10/28/efficient-string-**
>>> concatenation-in-delphi/<http://www.delphitools.info/2013/10/28/efficient-string-concatenation-in-delphi/>
>>>
>>
> > Did you try any other fpc compiler optimisation settings? No expert, but
> > looks like it isn't too difficult for compiler to spot this.
>
> It may indeed be possible to handle this in the compiler.
>
>
> > What about llvm - (coming soon to fpc apparently) - would that fix it?
>
> Not in the least. "soon" is also a gross overstatement.
>
>
> Jonas
>
> ______________________________**_________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.**org<fpc-pascal at lists.freepascal.org>
> http://lists.freepascal.org/**mailman/listinfo/fpc-pascal<http://lists.freepascal.org/mailman/listinfo/fpc-pascal>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131030/6c524975/attachment.html>


More information about the fpc-pascal mailing list