Hello,
Request to have my fix reviewed for issue:
JDK-8245308: Replace ThreadLocalCoders decoder/encoder cache in
java.net.URI.
This fix updates java.net.URI, replaces the ThreadLocalCoders optimization.
The benchmark results indicate no impact, optimization can be
replaced.The results of
benchmark are provided below and benchmark included in webrev.
Before
Benchmark (iterations) Mode Cnt Score Error Units
ThreadLocalURI.uriDecoderTest 100 avgt 25 0.258 ± 0.014
us/op
ThreadLocalURI.uriEncoderTest 100 avgt 25 35.540 ± 1.082
us/op
After
Benchmark (iterations) Mode Cnt Score Error Units
ThreadLocalURI.uriDecoderTest 100 avgt 25 0.247 ± 0.005
us/op
ThreadLocalURI.uriEncoderTest 100 avgt 25 37.231 ± 0.669
us/op
Issue: https://bugs.openjdk.java.net/browse/JDK-8245308
webrev: https://cr.openjdk.java.net/~ryadav/webrev_8245308/index.html
- rahul