As you've noticed, getting an identifier using a string takes a lot more time than getting a string using an identifier. This is expected and is a consequence of HashMap's implementation. Let's write a fourth strategy: OurHashBiMapStorageStrategy, which will eliminate this shortcoming.
You must be signed in to leave a comment
This page doesn't have any comments yet