Loading classes with many methods is very expensive
Aleksey Shipilev
aleksey.shipilev at oracle.com
Mon Oct 27 19:45:35 UTC 2014
On 27.10.2014 22:01, Martin Buchholz wrote:
> I'm having trouble keeping up with this thread I started, but I did
> update the test/benchmark
> http://cr.openjdk.java.net/~martin/webrevs/openjdk9/Class.getMethods-benchmark/
> <http://cr.openjdk.java.net/%7Emartin/webrevs/openjdk9/Class.getMethods-benchmark/>
>
> I added a test *LoadAllClassesAndMethods *that does what its name says.
> Although originally written as just a benchmark,
In our recent Nashorn classloading work, we did this benchmark:
http://cr.openjdk.java.net/~shade/8053904/ClassLoaderBenchmark.java
...which, I think can be easily exploded to call getMethods() as well.
> Jeremy is independently working on yet another performance problem
> exposed by *LoadAllClassesAndMethods*
Does Jeremy have a reportable outline? Submit the bug to make this
thread short :)
Thanks,
-Aleksey.
More information about the core-libs-dev
mailing list