I found some instances where we call containsKey and then get, while doing get and checking for null result is faster (only one hashmap lookup). For Damerau, we are checking if a key exists but anyway we always init with the same value.
Coverage increased (+0.3%) to 66.562% when pulling 990161d81f7af69d483cd0d7b3400e05591d92d7 on JPMoresmau:perf/containskey into d9439d65c2241138fa722a80b684b176980aef81 on tdebatty:master.
I found some instances where we call containsKey and then get, while doing get and checking for null result is faster (only one hashmap lookup). For Damerau, we are checking if a key exists but anyway we always init with the same value.
Great library, thanks a million for your work!