Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce number of string duplications in phar #17814

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

nielsdos
Copy link
Member

We don't need to duplicate these strings from the resource, we can just use them with an offset.
To prove this was safe, I had to make the arguments const and then propagate that everywhere, so this patch also introduces some more constness.

We don't need to duplicate these strings from the resource, we can just
use them with an offset.
To prove this was safe, I had to make the arguments const and then
propagate that everywhere, so this patch also introduces some more
constness.
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks worthy changes.

@nielsdos nielsdos merged commit 619d293 into php:master Feb 15, 2025
8 of 9 checks passed
nielsdos added a commit to nielsdos/php-src that referenced this pull request Feb 15, 2025
nielsdos added a commit to nielsdos/php-src that referenced this pull request Feb 15, 2025
nielsdos added a commit to nielsdos/php-src that referenced this pull request Feb 15, 2025
nielsdos added a commit to nielsdos/php-src that referenced this pull request Feb 15, 2025
nielsdos added a commit to nielsdos/php-src that referenced this pull request Feb 15, 2025
nielsdos added a commit that referenced this pull request Feb 15, 2025
nielsdos added a commit that referenced this pull request Feb 15, 2025
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