Summary: | Okular stumbles while scrolling through a heavy epub | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Alexander <koshka> |
Component: | EPub backend | Assignee: | Okular developers <okular-devel> |
Status: | ASSIGNED --- | ||
Severity: | normal | CC: | aacid, postix |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Alexander
2019-12-20 16:05:07 UTC
Yeah, the text generators are not threaded. There's a few #ifdef OKULAR_TEXTDOCUMENT_THREADED_RENDERING around the code but never enabled, i guess Pino didn't feel it was safe enough. Someone should find time to finish the feature 1) I don't understand how a plaintext document can be rendered so inefficiently. It takes time for Okular to do pagination of a book, which, AFAIK do not have a notion of a page (fb2, mobi), it's OK. But then it stumbles over each page! A page with about 40 rows of text on it. On my Acer C720 Okular freezes completely for about a second, then has about 3 seconds of considerably deteriorated performance. It doesn't take so much time to render a similar or even more complex pdf page. Only pdf pages with complex graphics take much time to render. 2) If a user was patient enough and slowly scrolled through some pages they become quickly accessible. Kind of "pre"-loaded. User can scroll smoothly back and forth in the range of these pages. So, maybe some kind of prefetch could be done to improve performance? Maybe even all book could be situated in RAM in a form suitable for rendering? Does it take too much RAM? By the way, Okular Settings [Configure Okular -> Performance -> Memory Usage] seem does nothing for non-pdf formats. > I don't understand how a plaintext document can be rendered so inefficiently.
I'm eagerly awaiting your patches that will make everything so much better.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/1130 |