Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] change to only calculate model size on initial load to prevent s…
…low cache promotions (#66451) (#66462) 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.
- Loading branch information