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

Add cache_info to benchmarking information in dlint.namespace #23

Open
mschwager opened this issue Feb 27, 2020 · 0 comments
Open

Add cache_info to benchmarking information in dlint.namespace #23

mschwager opened this issue Feb 27, 2020 · 0 comments

Comments

@mschwager
Copy link
Contributor

functools.lru_cache was recently added to dlint.namespace which provided a great speed up. We should output functools.lru_cache.cache_info information when benchmarking.

We should be able to:

  • Run the benchmarking code over a Python file
  • Output linter.namespace.illegal_module_imported.cache_info
  • Output linter.namespace.name_imported.cache_info
  • Consider caching asname_to_name as well

Outputting cache_info will tell us if we're efficiently caching information, and can allow for greater profiling and speed ups.

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

No branches or pull requests

1 participant