Skip to content

Fix fn-transitive-deps to skip already-visited vars#389

Merged
alexander-yakushev merged 1 commit into
masterfrom
fix-fn-transitive-deps-efficiency
Apr 16, 2026
Merged

Fix fn-transitive-deps to skip already-visited vars#389
alexander-yakushev merged 1 commit into
masterfrom
fix-fn-transitive-deps-efficiency

Conversation

@bbatsov

@bbatsov bbatsov commented Apr 15, 2026

Copy link
Copy Markdown
Member

The checked set in fn-transitive-deps was accumulated but never used for filtering - new deps were filtered against deps instead. This meant the same var could be expanded by fn-deps multiple times in graphs with shared dependencies. Now filters against checked to avoid redundant work.

The checked set was accumulated but never used for filtering,
so the same var could be expanded multiple times. Filter against
checked instead of deps to avoid redundant fn-deps calls.
Also simplified the cond to if since there are only two branches.
@alexander-yakushev alexander-yakushev merged commit 4b9c651 into master Apr 16, 2026
12 checks passed
@alexander-yakushev alexander-yakushev deleted the fix-fn-transitive-deps-efficiency branch April 16, 2026 10:03
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.

2 participants