Forum > FPC development
[SOLVED] Improvement of function EncodeURI
Leledumbo:
--- Quote from: AlexTP on October 03, 2023, 09:30:23 am ---Don't concat small strings. But collect parts in the TStringArray with predefined Length (about 10). When all done, concat all StringArray parts via one mem realloc (like TStringList.Text does).
--- End quote ---
I don't think it will have significant improvement in a language with mutable strings, but a benchmark should be able to reveal the truth.
marcov:
TStringBuilder ?
Navigation
[0] Message Index
[*] Previous page