-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for concurrent processing of pages.
setup.py Add new _apply_pages.py to wheels/installs. src/__init__.py New top-level apply_pages(). Also convenience fn get_text() which uses apply_pages(). Unlike Python's `multiprocessing` module, we also support passing keyword args to functions in worker process. src/_apply_pages.py New, contains implementation of apply_pages(). tests/test_pylint.py Avoid pylint failure by disabling `R0801: Similar lines in 2 files`. tests/test_textextract.py Test get_text() and show timings. src/fitz___init__.py tests/conftest.py Use functions to manipulate _g_log_items so that things work even when using `fitz` alias. Timings for 8-core MacOS-arm64 and PDF spec: method='multiprocessing' : 3.3x. method='fork': 3.6x.
- Loading branch information
1 parent
838d8f1
commit a799bde
Showing
7 changed files
with
525 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.