[PROPOSAL][JDK10] Introduce Executable.getParameterType(index)
John Rose
john.r.rose at oracle.com
Fri Nov 3 00:59:46 UTC 2017
On Nov 2, 2017, at 4:33 PM, Christoph Dreis <christoph.dreis at freenet.de> wrote:
>
> this has a bigger impact on the overall footprint of Method/Executable objects. What are your thoughts on this?
The footprint is probably about the same. Small List.of values
do not contain arrays, and may be smaller than arrays with the
same number of elements, since they do not have a length field.
And, indeed, methods typically have a small number of parameters.
See the type java.lang.util.ImmutableCollections.List2 for an
example of an array-free data structure.
— John
More information about the core-libs-dev
mailing list