Skip to content

[codex] Bound local type search - #87

Open
farvend wants to merge 3 commits into
fosdickio:mainfrom
farvend:codex/fix-bounded-local-type-search
Open

[codex] Bound local type search#87
farvend wants to merge 3 commits into
fosdickio:mainfrom
farvend:codex/fix-bounded-local-type-search

Conversation

@farvend

@farvend farvend commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Add an exact-name fast path through get_type_by_name.
  • Bound partial type enumeration with max_scan.
  • Stop scanning as soon as the result limit is reached.
  • Bound optional library-type searches.

Why

Local type search could enumerate every available type even for an exact query or a small result page.

Impact

Type search has predictable work limits on large Binary Ninja databases.

Validation

  • python -B -m unittest discover -s tests -p "test_*.py" (2 tests)
  • npm run build

@farvend
farvend marked this pull request as ready for review August 26, 2026 10:48
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