Repository navigation
perf(xslt): project only changed bindings and uninterned values into SXD - #380
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
- an element projected for XPath carries only the namespace bindings it changes relative to its parent; every SXD reader of bindings walks the ancestors with shadowing, so the namespace axis, prefix and default namespace lookups resolve the same in-scope lists, and a list that does not line up with its parent's is still projected whole - attribute values, text, comments and instruction values are stored without the keyed string pool; names keep their interning - the projection reserves its node arenas and each element's attribute and child lists from the counts its storage charge already uses - prefix_for_namespace_uri skips a prefix a nearer element rebinds, in both SXD backends, so a shadowed prefix is never reported for a URI Regression test: a_prefix_rebound_by_a_nearer_element_is_not_reported_ for_its_outer_uri. Projection tests check every projected element sees its source element's in-scope bindings and that only line-up lists are reduced. XSLT 16384 verify: projection 13.1% -> 6.1% of the command, user CPU 64.8 -> 60.6 ms, minimum 73.4 -> 69.7 ms. Closes #379
2f3fa92 to
d30f44e
Compare
Summary
verify: the projection falls from 13.1% to 6.1% of the command; user CPU 64.8 -> 60.6 ms.Changes
Package::with_requirements,Element::reserve).prefix_for_namespace_uriskips a prefix a nearer element rebinds, in both SXD backends.Testing
Tests, lints and formatting pass on macOS; CI runs the full platform and feature matrix. A regression test covers the rebound-prefix lookup, and projection tests check that every projected element sees its source element's in-scope bindings.
Closes #379
Summary by CodeRabbit