It may be worth looking at the Reset method on bytes.Buffer.
Tyler Bunnell
12

Yep, thanks! For small compound strings you can amortise away the cost of the bytes.Buffer if you can keep it around and use the Reset() method, leaving you with a cost of just 1 allocation to make each string and a roughly equivalent CPU usage to string concatenation. But in this simple case just concatenating is still better as you don’t need to bother hanging onto the buffer.