Reusing the same geonameid Integer instance between `id2loc` and `name2ids` maps reduces (a little) memory footprint. Measured OverarchigLocation class retained memory with VisualVM on openJDK 8 : - initial : 183 439 490 bytes - after refactoring : 164 666 830 bytespull/97/head
parent
7f846ef674
commit
6bc2bf1aa4
Loading…
Reference in new issue