Skip to content

Conversation

@ericpre
Copy link
Contributor

@ericpre ericpre commented Jun 3, 2023

When various array backends of dask are installed, it can slow down significantly the import time of pint.

Running python -X importtime -c "from pint import UnitRegistry" 2> pint.txt && tuna pint.txt

Without this PR:

image

With this PR:

image

  • [n/a] Closes # (insert issue number)
  • Executed pre-commit run --all-files with no errors
  • The change is fully covered by automated unit tests
  • [n/a] Documented in docs/ as appropriate
  • Added an entry to the CHANGES file

@ericpre ericpre force-pushed the defer_dask_import branch from 6d4a2a2 to 464a8dc Compare June 3, 2023 13:03
@hgrecco
Copy link
Owner

hgrecco commented Jun 3, 2023

awesome improvement. I have a few suggestions that I will add as comments in the code

@ericpre
Copy link
Contributor Author

ericpre commented Sep 1, 2023

@hgrecco, when you have a chance, can you please add your comments to this PR? Thanks!

@ericpre
Copy link
Contributor Author

ericpre commented Jan 5, 2024

@hgrecco, would it possible to get this PR reviewed?

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