Skip to content

[PHP] Walk JSON string values without decoding object trees - #562

Draft
adamziel wants to merge 2 commits into
trunkfrom
codex/walk-json-string-values
Draft

[PHP] Walk JSON string values without decoding object trees#562
adamziel wants to merge 2 commits into
trunkfrom
codex/walk-json-string-values

Conversation

@adamziel

Copy link
Copy Markdown
Collaborator

Json URL rewriting no longer builds a decoded PHP tree for every candidate document. The iterator validates the JSON once, exposes only string-value spans, and preserves all untouched JSON bytes when a leaf changes.\n\nThe test covers nested leaves, original formatting outside a changed leaf, a 10,000-item document, and malformed Unicode escapes.

@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Pull pipeline performance — large-directory

Site: large-directory · 2,000+ plus targeted file-transfer scenarios files · 10,000 posts · 25,000 postmeta · PHP 8.5.9

Stage PR trunk Δ Status Details
playground-sqlite-db-pull 7.56 s 7.44 s ⚪ +114 ms (+1.5%) condition=db-pull in PHP.wasm
runtime=php.wasm 8.3
wp_mysql_parser=enabled
mode=lexer
native_lexer=verified
native_token_stream=WP_MySQL_Native_Token_Stream
native_token_count=18
native_parser=selected
trunk: condition=db-pull in PHP.wasm
runtime=php.wasm 8.3
wp_mysql_parser=enabled
mode=lexer
native_lexer=verified
native_token_stream=WP_MySQL_Native_Token_Stream
native_token_count=18
native_parser=selected
playground-sqlite-db-apply 2.99 s 3.11 s ⚪ -123 ms (-3.9%) condition=db-apply to SQLite in PHP.wasm
runtime=php.wasm 8.3
wp_mysql_parser=enabled
mode=parser
native_lexer=verified
native_token_stream=WP_MySQL_Native_Token_Stream
native_token_count=18
native_parser=verified
native_ast=WP_MySQL_Native_Parser_Node
sqlite_driver_parser=verified
trunk: condition=db-apply to SQLite in PHP.wasm
runtime=php.wasm 8.3
wp_mysql_parser=enabled
mode=parser
native_lexer=verified
native_token_stream=WP_MySQL_Native_Token_Stream
native_token_count=18
native_parser=verified
native_ast=WP_MySQL_Native_Parser_Node
sqlite_driver_parser=verified
Total 10.55 s 10.56 s ⚪ -9 ms (-0.1%)

Numbers carry runner noise; treat single-run deltas as directional, not authoritative.

📈 Trunk performance history — commit-by-commit timeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant