OpenSearch/x-pack/plugin/ml
Benjamin Trent a370104535
[ML] change to only calculate model size on initial load to prevent slow 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.
2020-12-16 14:01:21 -05:00
..
licenses [ML] Rename log structure to file structure (#33421) 2018-09-06 09:13:08 +01:00
qa [7.10][ML] Increase timeout waiting for DFA jobs to finish in integ tests (#65126) (#65131) 2020-11-17 16:46:17 +02:00
src [ML] change to only calculate model size on initial load to prevent slow cache promotions (#66451) (#66462) 2020-12-16 14:01:21 -05:00
build.gradle [ML] Load data streams plugin for ML internal cluster tests (#63560) 2020-10-12 17:46:50 +01:00