ef9ab94580
The overall hit-rate improves significantly when we don't remove entries too soon. Here we give entries more time to show their merrit. There are now two limits, soft and hard. The former is used to remove entries with no hits at all, while the latter is used to avoid overflowing the cache footprint too much. Entries also get started with a single hit, which prevents them getting evicted too soon (i.e. right after getting added). Finally, there is no longer need to reduce the hit count of entries too agressively since we have two tiers (soft and hard limits) and zero-hit entries are removed before others. The average cache size while auto-typing in Writer doc is less than 180kb, which is 1.4x the original size of 128kb. Change-Id: I946318151638c9c64c714190084c492f9098852b Reviewed-on: https://gerrit.libreoffice.org/31291 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com> |
||
---|---|---|
.. | ||
ChildSession.cpp | ||
ChildSession.hpp | ||
ForKit.cpp | ||
Kit.cpp | ||
Kit.hpp | ||
KitHelper.hpp |