Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make load_memory_map faster! #16

Open
callegarimattia opened this issue Jan 14, 2024 · 0 comments
Open

Make load_memory_map faster! #16

callegarimattia opened this issue Jan 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@callegarimattia
Copy link
Contributor

callegarimattia commented Jan 14, 2024

Currently, to load a large pdf file (i.e. bible.pdf of ~700pages) it takes 72 secs.

Here the profile data:
image

As we can see the biggest bottleneck is the load_memory_map at line 86 function (which is almost 4x slower the generating the xml file).

Other than simply making it go faster... a good approach may be to start loading the pages while the file gets generated.

We should be able to start reading the file while it gets written.

@callegarimattia callegarimattia added the enhancement New feature or request label Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant