Skip to content

perf: using constant sizeof instead of strlen#21091

Closed
cuiweixie wants to merge 1 commit intophp:masterfrom
cuiweixie:perf-v2
Closed

perf: using constant sizeof instead of strlen#21091
cuiweixie wants to merge 1 commit intophp:masterfrom
cuiweixie:perf-v2

Conversation

@cuiweixie
Copy link
Copy Markdown
Contributor

No description provided.

@iluuu1994
Copy link
Copy Markdown
Member

Hi @cuiweixie. strlen() on literals is optimized away by any reasonable compiler. So there's no need for this change.

@iluuu1994 iluuu1994 closed this Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants