[okular] [Bug 507802] Opening / Loading PDF from Samba share (SMB / CIFS) is very slow
Sebastian
bugzilla_noreply at kde.org
Fri Sep 11 02:44:06 BST 2026
https://bugs.kde.org/show_bug.cgi?id=507802
--- Comment #7 from Sebastian <sebastian_steiner at gmx.de> ---
Same problem still under Debian 13 amd64.
If you give Poppler the "QString &filePath" as it does in the standard
implementation of Okular, Poppler loads the file slowly like a snail over a
high latency OpenVPN connection. It seems to seek itself to death. Even in a
Gigabit Ethernet LAN over Samba it's noticable and users complain: "It can
never reasonably take so long to display a 1..2 MB PDF file!"
But if you let Qt read the file ("QByteArray fileContent = file.readAll();")
and give Poppler the memory buffer (Poppler::Document::loadFromData), Okular
displays the PDF file in fractions of a second as you would expect! Qt reads
the file soo much faster than Poppler.
That's why I always patch Okular and build it from source in our environment,
as described here: https://bugs.kde.org/show_bug.cgi?id=507802#c5
But of course it would be better if Poppler would use an in-memory buffer
instead of performing large quantities of seek operations on slow storage. That
way it manages to be slow even for small files. Command line tools like
pdftoppm are affected as well.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list