Skip to content

Conversation

@dqnk
Copy link
Contributor

@dqnk dqnk commented Dec 28, 2025

Conversion of large notes (~100 pages or more) was relatively slow. This PR parallelizes it a little. Not completely, because def _create_pdf(self, buf, imglist, renderer_class, enable_link, enable_keyword): is likely still the bottleneck and is not paralelized (I have a branch for it, but have not had the time to go through all the changes).

The default worker count is set at max to 8, because in practice even those are not fully used. The conversion time for a large note has dropped for me from ~70 seconds to ~40 seconds.

@jya-dev
Copy link
Owner

jya-dev commented Jan 13, 2026

Thank you for your pull request! I was able to confirm the speedup. Please wait a little longer as I am currently reviewing the code.

@jya-dev jya-dev merged commit 343d59b into jya-dev:master Jan 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants