Skip to content

Free more cache

Kevin Slagle requested to merge kslagle/okular:freeMoreMemory into master

Free the entire memory cache when the system is out of memory and using the Normal memory setting. Aggressive and higher memory settings still keep a lot of cache.

Test:

  1. Cache 100 pages by scrolling. Okular is now using 6GB of memory (on a 4k monitor with single page view).
  2. Run a program to use all available RAM so that the system starts using swap memory.

Result: Okular is using 1.2GB of memory without this commit, and 200MB with this commit.

Edited by Kevin Slagle

Merge request reports

Loading