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

Improve performance : count() and array_push removal when possible #84

Merged
merged 1 commit into from
Jun 24, 2021

Conversation

samsonasik
Copy link
Member

Signed-off-by: Abdul Malik Ikhsan samsonasik@gmail.com

Q A
QA yes

Description

  • Use empty [] comparison instead of count() for array when possible
  • Use array assign instead of array_push when possible

@samsonasik samsonasik changed the title Improve performance: Improve performance Jun 3, 2021
- Use empty [] comparison instead of count() for array when possible
- Use array assign instead of array_push when possible

Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
@samsonasik samsonasik changed the title Improve performance Improve performance : count() and array_push removal when possible Jun 24, 2021
@samsonasik samsonasik added this to the 1.3.0 milestone Jun 24, 2021
@samsonasik samsonasik merged commit 13af250 into laminas:1.3.x Jun 24, 2021
@samsonasik samsonasik deleted the improve-performance branch June 24, 2021 12:49
@froschdesign
Copy link
Member

@samsonasik
Why minor version?

@samsonasik
Copy link
Member Author

@froschdesign its improvement, not bug fix, if i remember correctly, @Ocramius pointed for improve performance is targetting minor version.

@froschdesign
Copy link
Member

@samsonasik
All fine, but at the moment there is no visible benefit for the user. A benchmark would be perfect or at least a reference explaining why it is an improvement. I think the release notes should contain this type of information otherwise we will be asked again: "Why minor version?"

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.

None yet

3 participants