Closed danielnaber closed 6 years ago
This should have been eliminated by hotspot and make no practical difference, actually -- I am a bit surprised it increases performance. But I like the patch nonetheless.
Just to be clear, I didn't actually measure if there's any improvement, I just found this by looking at the code and thought it cannot do any harm.
Oh, ok. Thanks anyway!
areEqual()
runscontainsKey()
and thenget()
, I think it's faster by runningget()
directly? I found thatareEqual
takes 7% of all the CPU usage on languagetool.org, so any optimization there is welcome.