Skip to content

Commit 3a35fe3

Browse files
committed
doc
1 parent a96fcac commit 3a35fe3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

autoresearch.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Optimize `WP_HTML_Processor::next_token()` tokenization throughput on html-stand
5959

6060
10. **Use int bookmark names** — Avoid int-to-string conversion per token by passing counter directly. ~14ms.
6161

62-
### Current: 1830ms mean (stddev 40ms) — 25.4% improvement
62+
### Current: 1776ms mean (stddev 27ms) — 27.6% improvement
6363

6464
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.
6565

@@ -81,6 +81,12 @@ Optimize `WP_HTML_Processor::next_token()` tokenization throughput on html-stand
8181

8282
20. **Skip change_parsing_namespace() for HTML-namespace tokens** — Avoid calling the method when the namespace is already 'html'. Marginal.
8383

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+
8490
### Dead Ends
8591

8692
- **Inline `skip_whitespace()`** — No improvement; PHP optimizes short function calls well.

0 commit comments

Comments
 (0)