mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
![]() This is useful to reduce the computation time when creating PDF visual diffs. Here is a comparison of the same operation using python arrays and numpy arrays + lookups: Python arrays: ``` diff took 5.094218431997433 seconds diff took 3.1553626069980965 seconds diff took 3.3721952960004273 seconds diff took 3.2134646750018874 seconds diff took 3.3410625500000606 seconds diff took 3.2893160990024626 seconds ``` Numpy: ``` diff took 0.13705662599750212 seconds diff took 0.05698924000171246 seconds diff took 0.15319590600120137 seconds diff took 0.06126453700198908 seconds diff took 0.12916332699751365 seconds diff took 0.05839455900058965 seconds |
||
---|---|---|
.. | ||
gui | ||
isolation_provider | ||
test_docs | ||
test_docs_compressed | ||
test_docs_external | ||
test_docs_large@0068ffcb67 | ||
__init__.py | ||
conftest.py | ||
test_cli.py | ||
test_document.py | ||
test_large_set.py | ||
test_ocr.py | ||
test_settings.py | ||
test_util.py |