Skip to content

Add cache_info to benchmarking information in dlint.namespace #23

@mschwager

Description

@mschwager

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions