Robert, If you can create a micro benchmark that fools all of the core-libs-dev
or real world benchmark that actually shows performance improvements you might
be able to get this patch in to the source code.
Previous attempts are covered under
https://bugs.openjdk.java.net/browse/JDK-4375522 and
https://bugs.openjdk.java.net/browse/JDK-6383986.
Looks like this latest version is covered under
https://bugs.openjdk.java.net/browse/JDK-8025706. If 8025706 arrives at the
same conclusion as the previous attempts maybe some comments should be added to
explain what is not present in the code.
Jason
> From: sn...@gmx.de
> Subject: Optimization in collections API
> Date: Sun, 15 Dec 2013 11:34:01 +0100
> To: core-libs-dev@openjdk.java.net
>
> Hello,
>
> many real business applications make intensive use of the collections api. I
> have spend some time and tried to improve it a bit:
> I've added a shared empty array instances to java.util.Arrays and use
> Arrays.EMPTY_OBJECT_ARRAY where appropriate in collection classes and reduce
> use of new java.util.Iterator instances where possible
>
> The changes pass the existing tests in openjdk8 build (make test).
>
> Robert
>