Skip to content

perf(http): use keyed request header lookup#2158

Merged
innocenzi merged 1 commit into
tempestphp:3.xfrom
xHeaven:perf/http-requestheaders-keyed-get
Jun 5, 2026
Merged

perf(http): use keyed request header lookup#2158
innocenzi merged 1 commit into
tempestphp:3.xfrom
xHeaven:perf/http-requestheaders-keyed-get

Conversation

@xHeaven
Copy link
Copy Markdown
Member

@xHeaven xHeaven commented Jun 5, 2026

We don't need to iterate through all headers just to find one.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

Benchmark Results

Comparison of perf/http-requestheaders-keyed-get against 3.x (c699ab834d421d13f092554fe749e3599d3ad026).

Open to see the benchmark results

No benchmark changes above ±5%.

Generated by phpbench against commit 1cb0f61

@innocenzi innocenzi merged commit 1a0860d into tempestphp:3.x Jun 5, 2026
76 checks passed
@xHeaven xHeaven deleted the perf/http-requestheaders-keyed-get branch June 5, 2026 23:40
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.

2 participants