Re: Some questions about String interning for primitives

2021-06-03 Thread Roger Riggs
Hi Dave, Have you seen the related thread about Integer.toString()? https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-April/076454.html Allocation is cheap and short lived object storage is quick to be reclaimed. What's missing is data about the cost vs savings in real applications. An

Some questions about String interning for primitives

2021-06-03 Thread dfranken . jdk
Dear readers, Apologies in advance if these questions have been asked and discussed before or if they are on the wrong mailing list, maybe they are more suited for project Valhalla, I'm not sure. I was wondering if it would be possible / feasible to intern primitive values and byte arrays and use