Skip to content

fix: fixed the duplicate key issue#6

Open
DebanKsahu wants to merge 3 commits into
LukasNiessen:mainfrom
DebanKsahu:fix/_build_cache_key
Open

fix: fixed the duplicate key issue#6
DebanKsahu wants to merge 3 commits into
LukasNiessen:mainfrom
DebanKsahu:fix/_build_cache_key

Conversation

@DebanKsahu
Copy link
Copy Markdown

Pull Request

  • _build_cache_key directly sorting exclude_patterns and converting them into tuple, this ignoring the duplicate patterns that might be present in exclude_patterns list which might cause redundant GraphCacheKey generation.
  • This pull request makes a minor improvement to the cache key generation logic by ensuring that duplicate values in exclude_patterns are removed before sorting and creating the cache key tuple. This helps prevent unnecessary cache misses due to repeated patterns.

Change Type

  • Bug fix
  • Feature
  • Documentation
  • Refactoring

- `_build_cache_key` directly sorting exclude_patterns and converting them into tuple, this ignoring the duplicate patterns that might be present in `exclude_patterns` list which might cause redundant `GraphCacheKey` generation.
@DebanKsahu DebanKsahu requested a review from LukasNiessen as a code owner May 27, 2026 03:09
…om `excludes` in `extract_graph()` method.

- The reason, apart from `_build_cache_key()` function `exclude` also used by some other private functions also.
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