RFR: 8231640: (prop) Canonical property storage
Andrey Turbanov
github.com+741251+turbanoff at openjdk.java.net
Tue Sep 7 14:20:37 UTC 2021
On Sun, 5 Sep 2021 12:38:20 GMT, Jaikiran Pai <jai.forums2013 at gmail.com> wrote:
> Do you mean that converting the keySet() of an
>existing Map into an array and then sorting that array and then using
>that sorted array to iterate and using these keys to do an additional
>lookup for value against the original Map would be more efficient in
>this case?
You can convert entrySet() to array. Not a keySet. In this case there is no need to lookup for values.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5372
More information about the core-libs-dev
mailing list