RFR: 8193034: Optimize URL.toExternalForm
Martin Buchholz
martinrb at google.com
Mon Dec 11 17:24:03 UTC 2017
There's now a Martin-style benchmark at
http://cr.openjdk.java.net/~martin/webrevs/jdk/URLMicroBenchmark/
that suggests the code is ~ 25% faster with default JVM flags (C2) but ~
25% slower with C1, as you might expect with multiple String
concatenation. I think we want to optimize for the default and assume that
multiple String concatenation does in fact get optimized.
I'm not planning to check in the benchmark code.
On Tue, Dec 5, 2017 at 2:10 AM, Chris Hegarty <chris.hegarty at oracle.com>
wrote:
>
> > On 5 Dec 2017, at 04:01, Martin Buchholz <martinrb at google.com> wrote:
> >
> > http://cr.openjdk.java.net/~martin/webrevs/jdk/URL.toExternalForm/
>
> Since the motivation for this change is performance, do you have any
> performance numbers / benchmarks that you can share?
>
> -Chris.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20171211/bbdf73e9/attachment.html>
More information about the net-dev
mailing list