Skip to content

perf(dataflow): scan throwability once per statement - #124

Open
MikeeI wants to merge 1 commit into
codellm-devkit:mainfrom
MikeeI:fix/issue-005
Open

perf(dataflow): scan throwability once per statement#124
MikeeI wants to merge 1 commit into
codellm-devkit:mainfrom
MikeeI:fix/issue-005

Conversation

@MikeeI

@MikeeI MikeeI commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Detect the existing four throw-capable syntax kinds in one subtree traversal.
  • Preserve root inspection and nested function and class boundaries.

Evidence

  • Four-scan samples took 79.5–116.7 ms with a 102.2 ms median.
  • One-scan samples took 43.5–57.0 ms with a 52.1 ms median and identical booleans.

Validation

  • bun test test/dataflow.test.ts
  • bun run typecheck
  • Exact mayThrow comparison for all 5,965 self-analysis statements.

Prior art

Disclosure

Investigated thoroughly with GPT-5.6 (extra high reasoning effort), using Oh My Pi as the agent framework.
This report is not generic or unreviewed AI-generated output.
Its claims were checked against the cited evidence, and it includes the relevant detail intended to help maintainers resolve the issue.
If reports like this are not useful to the project, please let me know and I will refrain from submitting similar ones.
My intent is to help without wasting maintainer time or energy or discouraging their work.
Thank you for your work.

@rahlk rahlk self-assigned this Sep 2, 2026
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