perf(scanners): parallel walk, extension filter, text redaction#6
Merged
wgordon17 merged 2 commits intogordon-code:mainfrom Mar 16, 2026
Merged
perf(scanners): parallel walk, extension filter, text redaction#6wgordon17 merged 2 commits intogordon-code:mainfrom
wgordon17 merged 2 commits intogordon-code:mainfrom
Conversation
Replace serial os.walk() with parallel_walk_dirs() (ThreadPoolExecutor per-directory fan-out). Expand WALK_SKIP_DIRS from 36 to 58 entries. Add NON_CONFIG_EXTENSIONS blacklist (117 extensions) and WALK_SKIP_SUFFIXES (.noindex, .lproj). Remove lossy file caps — safety now comes from directory pruning and extension filtering. Upgrade nix_state adjacent-project walk from depth 2 to 5 with shared pruning infrastructure and parallelism. Add symlink check in _walk_recursive to prevent traversal outside $HOME. Add text content redaction for sensitive values (password, token, key, secret) in captured config files, matching the existing plist redaction.
- _classify_file returns None for non-config extensions (no phantom stubs) - Removes _ADJACENT_CAP, _PACKAGE_CAP, _MAX_SCRIPTS (silent data loss) - Single results declaration in parallel_walk_dirs (if/else, not duplicate) - Sorts all parallel-aggregated lists for deterministic output (5 call sites) - Inlines _get_hm_packages return after cap removal (ruff RET504)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary