ArrayPool is a very interesting option. Unlike your use case I have no control over the form of my incoming strings (and they're usually horrid trash). I do a bajillion manipulations on them including a lot of splitting, substringing, replacements, converting to List, and StringBuilding. I'm going to study what all I'm doing to see if I can use the power of the ArrayPool to replace some of my admittedly brutal (and as-yet untuned-for-performance) methods.
It would be great to see what you can achieve using the things I learned in the article!
Look forward to your results!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.