Skip to content

Improvement in common module - #56

Open
DebanKsahu wants to merge 5 commits into
LukasNiessen:mainfrom
DebanKsahu:perf/common_improvement
Open

Improvement in common module#56
DebanKsahu wants to merge 5 commits into
LukasNiessen:mainfrom
DebanKsahu:perf/common_improvement

Conversation

@DebanKsahu

Copy link
Copy Markdown
Contributor

Pull Request

I did some memory and performance improvement during going through the common module code.

  • LoggingOptions, CheckOptions, DeclarationCounts, Filter and PatternMatchingOptions classes now using slots-True options to reduce memory of objects.
  • I improved code_declarations() function which now only take 2 iteration (one through ast.walk(tree) which do complete walk and the second one is through ast.body which do a module level walk) to calculate module level functions, instance, class and nested classes. There is no need of _is_module_level() function for now.

Change Type

  • Bug fix
  • Feature
  • Documentation
  • Refactoring
  • Improvement

Validations

  • uv run pytest successful with 100%
  • uv run ruff check src/ All check passed
  • uv run mypy src/archunitpython/ All check passed

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.

1 participant