Skip to content

Perf: gate type-report cleanup off the critical path (#21) - #267

Merged
b-re-w merged 1 commit into
developfrom
feat/tp-gate-cost
Oct 24, 2026
Merged

b-re-w merged 1 commit into
developfrom
feat/tp-gate-cost

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 24, 2026

Copy link
Copy Markdown
Member

Closes #21

Breakdown (1800-line module, rough, load ~1.5): plain pyrefly check ~165-200 ms; the gate's pyrefly run with --report-pysa ~0.9-1.1 s (writes ~43 MB, mostly typeshed copies; the gate reads only type_of_expressions, 676 KB); inline deletion 0.3-0.4 s, now a detached rm (falls back to rmtree); parse 54 ms. Ratio 8x -> 6.2x. Remaining cost is pyrefly's own --report-pysa output, which pyrefly 1.3.2 cannot narrow; the alternatives (--report-trace/--report-glean) carry different data. test_measurement.py prints the breakdown. A quiet-window measurement will be recorded on the issue.

@b-re-w
b-re-w merged commit ebe6798 into develop Oct 24, 2026
@b-re-w
b-re-w deleted the feat/tp-gate-cost branch October 24, 2026 21:50
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