Skip to content

[PHP] Preserve filesystem roots while resolving tree paths - #506

Open
adamziel wants to merge 1 commit into
trunkfrom
adamziel/path-utility-file-tree-root-joins
Open

[PHP] Preserve filesystem roots while resolving tree paths#506
adamziel wants to merge 1 commit into
trunkfrom
adamziel/path-utility-file-tree-root-joins

Conversation

@adamziel

@adamziel adamziel commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

FileTreeProducer now keeps / as its filesystem root and joins relative paths through wp_join_unix_paths(). A root-relative path list therefore remains rooted when producing file chunks.

Tests: cd tests && ../vendor/bin/phpunit FileSyncProducer/FilesystemRootTest.php; vendor/bin/phpstan analyze --memory-limit=1G packages/reprint-server/src/class-file-tree-producer.php.

@github-actions

github-actions Bot commented Aug 7, 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 9.27 s 9.44 s ⚪ -175 ms (-1.9%) 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 3.51 s 3.49 s ⚪ +22 ms (+0.6%) 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 12.77 s 12.93 s ⚪ -154 ms (-1.2%)

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

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

@adamziel
adamziel force-pushed the adamziel/path-utility-file-tree-root-joins branch from 16f83cd to b4e61ee Compare August 7, 2026 00:55
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