HazJ 1289 Posted May 15, 2018 ooh, lol. Never used the function before. Hehe. Good to know though, thanks! 2 Share this post Link to post Share on other sites
Muzzleflash 111 Posted May 15, 2018 I realized it was wasteful to add the replacement incrementally and then join by empty string. Instead I just join on the replace-string directly. This also works if replacement happens at the the start and end, since then empty strings are still added to the _parts array. I updated my function, and the benchmarks. It gave a tiny reduction, mostly visible on the 10-times search text, where it gave ~ 0.005 ms. 1 Share this post Link to post Share on other sites
ozdeadmeat 12 Posted May 25, 2019 Anyone else get errors when attempting to load these functions into the game? Share this post Link to post Share on other sites