Re: [fpc-pascal] StringList micro optimization

2019-11-08 Thread Michael Van Canneyt
On Fri, 8 Nov 2019, AlexeyT via fpc-pascal wrote: Procedure TStrings.SetDelimitedText(const AValue: string);  has about 16 calls to Length(AValue), so make a variable NLen to speed up it. Optimized, thanks for the hint. Also reworked it so AddDelimitedText reuses DelimitedText code, no temp

[fpc-pascal] StringList micro optimization

2019-11-07 Thread AlexeyT via fpc-pascal
Procedure TStrings.SetDelimitedText(const AValue: string);  has about 16 calls to Length(AValue), so make a variable NLen to speed up it. -- Regards, Alexey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-b