Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: don't allocate when converting a single byte to string #24172
At the moment, all three allocate, easily measured with:
There is some precedent to this, I believe. For example:
Another potential route would be for
If there is interest in investigating the performance penalty of such a change, I can work on a prototype CL to get some measurements. Unless this was already measured and discarded by someone, and I haven't been able to find a thread for it.
I had a change sitting around in my tree from
And to echo Keith, for small- to medium-sized optimization ideas, no proposal needed in general.