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

feat: asynchronous, parallel page loading for better performance for large PDF files. #118

Open
opened 2026年03月07日 00:06:40 +01:00 by mahlzahn · 0 comments

Originally posted by @mahlzahn in #4 (comment) :

Description

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+1, k+2, ...

Also, might use multiple CPUs for loading the pages in parallel!

Maybe, also restrict used memory, for too big files.

_Originally posted by @mahlzahn in https://codeberg.org/censor/Censor/issues/4#issue-2791839_: ## Description 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+1,ドル $k+2,ドル ... Also, might use multiple CPUs for loading the pages in parallel! Maybe, also restrict used memory, for too big files.
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#118
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?