RFR: 8302818: Optimize wrapper sets and immutable sets of Enums [v2]
Tingjun Yuan
duke at openjdk.org
Mon Feb 20 13:27:29 UTC 2023
On Mon, 20 Feb 2023 13:15:20 GMT, liach <duke at openjdk.org> wrote:
> Bad change, doesn't handle e0.equals(e1), and this is getting beyond the original issue
`Set.of(E, E)` handles duplication. If `coll` is `{Jumbo,Regular}EnumSetCompatible`, then we don't have to create the `HashSet`.
-------------
PR: https://git.openjdk.org/jdk/pull/12498
More information about the core-libs-dev
mailing list