On Mon, 28 Nov 2022 22:16:34 GMT, David Holmes <dhol...@openjdk.org> wrote:
>> Coleen's suggestion for efficiency reasons. > > If the comment is meant to suggest some possible future optimisation it > should say that. Oh you should uncomment that code. The hashtable that this replaces has the same early cut-out for efficiency. You can also have an early cut out if the hashtable is empty, like if (is_empty()) { return 0 } ------------- PR: https://git.openjdk.org/jdk/pull/11288