RFR 8245308 : Replace ThreadLocalCoders decoder/encoder cache in java.net.URI

Alan Bateman Alan.Bateman at oracle.com
Thu Aug 27 18:32:33 UTC 2020


On 27/08/2020 19:14, Rahul Yadav wrote:
> Thank you all for the feedback. I have included feedback and updated 
> webrev.
>
> Before :
>
> Benchmark                          Mode  Cnt    Score    Error Units
> ThreadLocalURI.uriDecoderBaseline  avgt   25  556.315 ± 23.389 ns/op
> ThreadLocalURI.uriDecoderTest      avgt   25  728.413 ± 19.833 ns/op
> ThreadLocalURI.uriEncoderTest      avgt   25  337.042 ±  8.304 ns/op
>
> After :
>
> Benchmark                          Mode  Cnt    Score    Error Units
> ThreadLocalURI.uriDecoderBaseline  avgt   25  578.108 ±  9.829 ns/op
> ThreadLocalURI.uriDecoderTest      avgt   25  688.298 ± 10.654 ns/op
> ThreadLocalURI.uriEncoderTest      avgt   25  336.660 ±  2.997 ns/op
>
> webrev: 
> https://cr.openjdk.java.net/~ryadav/webrev_8245308/webrev.01/index.html
This version looks good to me.

-Alan


More information about the net-dev mailing list