You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: autoresearch.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ Optimize `WP_HTML_Processor::next_token()` tokenization throughput on html-stand
59
59
60
60
10.**Use int bookmark names** — Avoid int-to-string conversion per token by passing counter directly. ~14ms.
61
61
62
-
### Current: 1830ms mean (stddev 40ms) — 25.4% improvement
62
+
### Current: 1776ms mean (stddev 27ms) — 27.6% improvement
63
63
64
64
11.**Optimize tag name parsing with direct char check + single strcspn** — Replace `strspn()` + `strcspn()` combo for tag name detection with direct character range comparison. Move bounds check before character access. ~50ms.
65
65
@@ -81,6 +81,12 @@ Optimize `WP_HTML_Processor::next_token()` tokenization throughput on html-stand
81
81
82
82
20.**Skip change_parsing_namespace() for HTML-namespace tokens** — Avoid calling the method when the namespace is already 'html'. Marginal.
83
83
84
+
21.**Remove redundant isset in provenance computation** — When is_virtual is false, current_token is guaranteed set. Marginal.
85
+
86
+
22.**Remove unused operation property assignment** — The string operation property is dead code since all checks use is_pop boolean. Marginal.
87
+
88
+
23.**Pass boolean is_pop directly to stack event constructor** — Replace string comparison `self::POP === $operation` with a direct boolean parameter. ~30ms.
89
+
84
90
### Dead Ends
85
91
86
92
-**Inline `skip_whitespace()`** — No improvement; PHP optimizes short function calls well.
0 commit comments