mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
When a value is promoted in the LRU cache, its weight is removed and added. The LocalModel object was recalculating the model size for ever weight check, which caused a polynomial runtime. This commit changes the model size to only be calculated in the LocalModel ctor.