Commit cb9a395
committed
Mark WP_Parser_Node as final
Nothing extends WP_Parser_Node. Marking it final lets PHP's opcache
and tracing JIT specialize property access and method dispatch since
the class layout is now fixed. Small but consistent improvement
measured across multiple runs under tracing JIT (~+2% avg, ~+2% best).
End-to-end parser benchmark:
tracing JIT: ~57K -> ~57-58K QPS avg, 60-61K QPS best
no JIT: ~33K -> ~34K QPS avg, 35K QPS best1 parent ce75275 commit cb9a395
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments