The idea is to avoid unnecessary String objects duplication for the same words. Particularly efficient with the large moby thesaurus. Memory footprint measurements with VisualVM : - openthesaurus_de_yacy : - initial : 19 443 796 bytes - after refactoring : 18 012 606 bytes - mobythesaurus_en_yacy : - initial : 343 453 904 bytes - after refactoring : 173 843 780 bytes - thesaurus_ru_yacy : - initial : 3 800 706 bytes - after refactoring : 3 466 612 bytes - de + en + ru : - initial : 366 603 450 bytes - after refactoring : 195 015 914 bytespull/93/head
parent
60b3adfb43
commit
568e3dde6a
Loading…
Reference in new issue