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

Increase import performance (lru_cache) and add pytest-benchmark #279

Merged
merged 10 commits into from
Aug 3, 2023

Conversation

lebrice
Copy link
Owner

@lebrice lebrice commented Aug 3, 2023

  • Fixes Make simple-parsing faster #278
  • uses lru_cacheed versions of inspect.getdoc and inspect.getsource as well as docstring_parser.parse.
  • Makes the numpy import lazy
  • Adds a pytest-benchmark test dependency
  • Adds a test/test_performance.py file with some simple performance tests

Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Fixes #278

Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
@lebrice lebrice changed the title Increase import performance and parsing speed (add lru_cache) Increase import performance (lru_cache) and add pytest-benchmark Aug 3, 2023
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
@lebrice lebrice force-pushed the lebrice/increase_performance branch from 430d966 to 9d309fa Compare August 3, 2023 18:02
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
@lebrice lebrice merged commit b3d12de into master Aug 3, 2023
10 checks passed
@lebrice lebrice deleted the lebrice/increase_performance branch August 3, 2023 19:13
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.

Make simple-parsing faster
1 participant