On Mon, 7 Sep 2026 19:24:03 GMT, ExE Boss <[email protected]> wrote:

>> Thanks for the suggestion. Since it would require access to `SharedSecrets`, 
>> we'll consider that level of performance improvement once the API is no 
>> longer incubating.
>
> @naotoj I was talking about doing the optimisation inside 
> `java.util.ImmutableCollections​::listCopy(…)`, which is called by 
> `java.util.List​::copyOf(…)`:
> https://github.com/openjdk/jdk/blob/a48203f498fd55ae7ee8f1f38c2ed0b6224d41c6/src/java.base/share/classes/java/util/ImmutableCollections.java#L182-L190

Re `SequencedMap.of` and other factories: see 
https://github.com/openjdk/jdk/pull/28117#issuecomment-3577010934 for some 
history.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/32282#discussion_r3959658623

Reply via email to