Skip to content

Optimizing the circular dependency detection#860

Open
pnarimani wants to merge 1 commit into
hadashiA:masterfrom
pnarimani:feature/optimized-dfs
Open

Optimizing the circular dependency detection#860
pnarimani wants to merge 1 commit into
hadashiA:masterfrom
pnarimani:feature/optimized-dfs

Conversation

@pnarimani

Copy link
Copy Markdown
Contributor

Problem: The circular dependency checker was running in exponential time, checking every single type on every method call.

Changes:

  • Memoizing the result for correct types so we don't recalculate them every time.
  • Store the visiting types in a set so we don't have to iterate the entire stack every time.
  • Added tests

Memoize the result for correct types so we don't recalculate them every time.
Store the visiting types in a set so we don't have to iterate the entire stack every time.
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

@pnarimani is attempting to deploy a commit to the hadashia's projects Team on Vercel.

A member of the Team first needs to authorize it.

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