sumatrapdf icon indicating copy to clipboard operation
sumatrapdf copied to clipboard

Slow loading of large epub documents

Open Pocokk opened this issue 2 years ago • 1 comments

SumatraPDF version

  • Version v3.6.15941 64-bit

Describe the bug I open the epub file (link below) and it just refuses to open it, the whole interface seems to be frozen, I waited 15 minutes, but nothing changed unfortunately.

To Reproduce Steps to reproduce the behavior:

  1. Open up the file
  2. Wait and see/experience it

Expected behavior I know Sumatra is a lightweight reader and not designed for such huge heavy-hitters, but I still think there could be a solution here somehow.

File that reproduces the problem SCP Foundation The Complete Collection Omnibus.epub https://pixeldrain.com/u/Nt7VdUTU (unfortunately I can't upload it as an attachment, its too big. If this filehost is not appropriate (don't like it), please point me where I should upload the file to!)

Additional context I managed to open it with a different reader and turns out it has almost 44500 pages.

Pocokk avatar Jan 29 '24 19:01 Pocokk

We load and layout all the html files in an epub which is slow for large epub documents.

This is because we use the old style numbering with pages.

Mupdf was updated to allow for chapter / page numbering, which allows to layout only a single .html file (chapter) of an epub and defer laying out / rendering of other .html files.

We would need convert sumatra to use chapter / page numbering in the ui and when saving position in the document.

There are other issues related to slow rendering of large epubs that can be closed as dup of this.

The attached epub is a good test for this.

kjk avatar Jan 30 '24 12:01 kjk