Skip to content

[PHP] perf: avoid per-mmap gap sort allocation#751

Open
brandonpayton wants to merge 1 commit into
integration/kd-6nz-php-phpt-harness-only-basefrom
gascity/kd-6nz/split-pr717-mmap-gap-sort
Open

[PHP] perf: avoid per-mmap gap sort allocation#751
brandonpayton wants to merge 1 commit into
integration/kd-6nz-php-phpt-harness-only-basefrom
gascity/kd-6nz/split-pr717-mmap-gap-sort

Conversation

@brandonpayton

Copy link
Copy Markdown
Member

Supersedes fork-headed PR #731. This replacement keeps the same head commit (bb8a322) but moves the PR head onto an Automattic/kandelo branch.

Why this is needed

The PHPT suite performs enough mmap-heavy work that avoidable per-mmap allocation overhead becomes visible. Slow memory mapping makes broad test coverage unnecessarily expensive.

Why this shape makes sense

The change improves the allocator and search path used by the kernel instead of reducing PHP coverage. It keeps the test harness honest while removing runtime overhead.

Why this is the correct fix

Avoiding a per-mmap gap sort allocation preserves behavior while reducing repeated work in a hot path. That is the right kind of throughput improvement for harness-scale workloads.

Verification

Branch-location correction only. Replacement head SHA matches fork-headed PR #731 exactly.

(cherry picked from commit dcbc0bc)
(cherry picked from commit 40dfbea)
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