Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
IMap.keySet() fetches both keys and values #4642
keySet() relies on QueryOperation. The QueryOperation doesn't accept IterationType - it always returns both keys & values. This can lead to unnecessary load and potentially even OOM.
It's especially painful when values are larger than keys.
kudos to @Donnerbart for pointing this out!