[okular] [Bug 388854] Okular uses a very large amount of RAM for caching

Albert Astals Cid bugzilla_noreply at kde.org
Mon Jan 15 22:52:54 UTC 2018


https://bugs.kde.org/show_bug.cgi?id=388854

--- Comment #6 from Albert Astals Cid <aacid at kde.org> ---
(In reply to Nate Graham from comment #5)
> Yes, but is the amount reasonable?

You have it available, do you prefer the memory to lay around being unused?

> 1.17 Gb RAM / 257 pages = 4.5 Mb per page, for a document that's only 3.2 Mb
> on disk. This PDF is mostly text and a few graphics.

First, what does it matter how much it takes on disk regarding to what the
actual representation will be? https://en.wikipedia.org/wiki/Zip_bomb

And second, we're caching the rendered pixmap, so yeah the file size matters
nothing against what file rendering caching will occupy.


> When I perform the same procedure in Evince, it tops out at 93 Mb and
> doesn't feel any slower. So Okular is using 11 times as much RAM for its
> caching, but doesn't seem notably faster.

Sure, but the page may have taken 3 minutes to render, do you really want to
add  code that decides whether to cache the rendered pixmap depending on how
much it took to render?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list