Commit 182d722
committed
Document the per-assertion parsing cost
Each assertion builds its own parser and walks the whole class set, so the
cost is linear in the number of rules: measured on 619 files, one pass takes
~2s and ten rules take ~20s, while the CLI parses once and checks every rule
against the result.
Only document it here. The fix is a memoizing Parser decorator, and that
implements a core interface over core types, so it belongs in
phparkitect/phparkitect next to FileParser, where the CLI and any other
integration get it too.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FE8ESEV7TzGLDwJuTfdq951 parent b55061c commit 182d722
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
68 | 80 | | |
69 | 81 | | |
70 | 82 | | |
| |||
0 commit comments