Join GitHub today
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.
changed the title
Proposal: runtime: don't allocate when converting a single byte to string
Feb 28, 2018
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.