Mechanism to reduce caches when low on memory?

Luboš Luňák l.lunak at collabora.com
Tue Dec 8 15:30:02 UTC 2020


 Hello,

 does LO have any mechanism that would signal that the system is low on memory 
and LO should therefore e.g. drop its caches?

 In https://bugs.documentfoundation.org/show_bug.cgi?id=136244#c11 I got asked 
to make Skia's image cache size configurable or even make it use a "better" 
default size. Of course, there is no good size, whatever I choose. With 
smaller values the cache is not going to be large enough for some setups, 
with larger values the cache is going to waste memory for some setups.

 I've looked and e.g. the Graphics cache simply has a timeout, the VCL scale 
cache has a maximum number of items, i.e. it seems all caches have just a 
custom arbitrary value. Do we have something else than this? How do e.g. 
Android/iOS handle this?

-- 
 Luboš Luňák
 l.lunak at collabora.com


More information about the LibreOffice mailing list