From 8a94d3dcfa0c37685afd5f966d7fdc1d25dc923d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 9 Apr 2018 11:16:59 +0200 Subject: tdf#108608 more Draw text editing responsiveness fixes Turns out Windows is rather slow at at calculating glyph outlines (compared to Linux), I'm guessing it does no caching at all, so just add our own little cache. I tried to use o3tl::lru_map here, but it crashes under MSVC2015. Change-Id: I78d2a787ec8f734fa821f41f13236771efa1c8d4 Reviewed-on: https://gerrit.libreoffice.org/52623 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/o3tl/lru_map.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/o3tl') diff --git a/include/o3tl/lru_map.hxx b/include/o3tl/lru_map.hxx index 2f41521795fc..4eb05bd97a43 100644 --- a/include/o3tl/lru_map.hxx +++ b/include/o3tl/lru_map.hxx @@ -132,6 +132,11 @@ public: { return mLruList.size(); } + + void clear() + { + mLruList.clear(); + } }; } -- cgit v1.2.3