censor/Censor
1
37
Fork
You've already forked Censor
3

bug: very long loading time for big PDF files #4

Closed
opened 2025年12月01日 16:43:19 +01:00 by mahlzahn · 0 comments

Description

Loading of big PDFs or PDFs with multiple pages have long loading time.

Implementation

Edit: actually rendering vector graphics instead of PNG textures greatly improves the loading time by a factor of 5-10. And it improves also the appearance.

(Future?) improvement

Currently, the content of all pages is read into memory before displaying the first page. Should implement some lazy or at least asynchronous loading of pages.

Idea for asynchronous and retarded loading of pages 2, 3, 4, ...:

  1. load page 1
  2. show page 1
  3. load pages 2, 3, 4 ... n
    • may be interrupt by choosing a page k, then:
      1. load page k (if not yet loaded)
      2. show page k
      3. load pages k, k+1, ...
## Description Loading of big PDFs or PDFs with multiple pages have long loading time. ## Implementation Edit: actually rendering vector graphics instead of PNG textures greatly improves the loading time by a factor of 5-10. And it improves also the appearance. ## (Future?) improvement Currently, the content of all pages is read into memory before displaying the first page. Should implement some lazy or at least asynchronous loading of pages. Idea for asynchronous and retarded loading of pages 2, 3, 4, ...: 1. load page 1 2. show page 1 3. load pages 2, 3, 4 ... $n$ - may be interrupt by choosing a page $k,ドル then: 1. load page $k$ (if not yet loaded) 2. show page $k$ 3. load pages $k,ドル $k+1,ドル ...
mahlzahn added this to the v0.4.0 milestone 2025年12月02日 20:01:42 +01:00
mahlzahn modified the milestone from v0.4.0 to v0.2.0 2025年12月06日 16:48:06 +01:00
Sign in to join this conversation.
No Branch/Tag specified
main
v0.7.3
v0.7.2
v0.7.1
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.0
v0.1.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
censor/Censor#4
Reference in a new issue
censor/Censor
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?