Page 2 of 2

Re: Faster string concatenation: Alternative method

Posted: Wed Feb 10, 2021 11:55 pm
by Lunasole
Steving wrote:I can't believe how much faster it is than standard string concatenation. I measured the performance in a loop with 100,000 iterations adding 4 items per iteration, yielding a total string length of 2,188,895 characters with an elapsed milliseconds of 311. Standard "" + "" string concatenation took (yawn!) 555,746 Milliseconds with an elapsed wall time of 17 minutes. Thank you so much for your contribution. I'm going to make multiple copies so that I can use it to work on multiple strings at at time. I'll have a herd of Cat's when I'm done :D :D :D. This is going to save my bacon. Unfortunately with the API that I'm using I need strings... lots of strings...

Thanks again!

Stevinga
Another one. I don't know is it still "fastest here except ASM", or not ^^ lol

viewtopic.php?f=12&t=69079