Skip to content

implementation of LongHashMap#14

Open
morphey2104 wants to merge 1 commit intocomparus:masterfrom
morphey2104:hash_map_implementation_with_long_as_a_key
Open

implementation of LongHashMap#14
morphey2104 wants to merge 1 commit intocomparus:masterfrom
morphey2104:hash_map_implementation_with_long_as_a_key

Conversation

@morphey2104
Copy link

In my implementation map could have only 1 collision due to negative and positive range of numbers.
I've tried a lot of operation to get normal value distribution across array and conclude thet sequental is the best. Beacue we couldn't have gaps inside it.
It couldn't have more then Integer.MAX_VALUE elements.
java.lang.reflect.Array is nessesary for typed array creation. Otherwithe error of ClassCastException appears in execution of values method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant