[okular] [Bug 507802] Opening / Loading PDF from Samba share (SMB / CIFS) is very slow

Sebastian bugzilla_noreply at kde.org
Sun Feb 22 21:06:01 GMT 2026


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

--- Comment #6 from Sebastian <sebastian_steiner at gmx.de> ---
(In reply to Sebastian from comment #5)
> Hi, I hope I have solved the problem: 
> ...
> I changed PDFGenerator::loadDocumentWithPassword in Okular's
> generator_pdf.cpp like this:
> ...
> With this change, Okular seems to display PDF files from network shares
> faster by factor >100 I guess. :D Amazing! 
> 
> Could you maybe implement the change in Okular? <3
> 
> I guess it might be reasonable to implement some limit for this in-memory
> loading, e.g. allow to take up to 20% of system memory available and
> otherwise fall back to the current approach?

Could we maybe put this issue back on the table by offering a little bounty? :) 
So I wouldn't have to package and distribute my own patched Okular debs anymore
in future. 

For us with 32+ GB of RAM in every PC / laptop, the simple solution "always
load to RAM" works great since months. 

For more general use in the mainline, even on tiny Raspis and stuff like that,
it might be considered to add some logic like "don't take more than x% of
available RAM, otherwise fall back to current non-preloading implementation for
too large files".

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


More information about the Okular-devel mailing list