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

[5.4] Refactor - Save a count and a test #16188

Merged
merged 1 commit into from
Oct 31, 2016
Merged

Conversation

sylwit
Copy link
Contributor

@sylwit sylwit commented Oct 30, 2016

Save a count and a test with. array_shift has a O(1) complexity.

Save a count and a test with. array_shift has a O(1) complexity.
@taylorotwell taylorotwell merged commit b7f38f8 into laravel:master Oct 31, 2016
@vlakoff
Copy link
Contributor

vlakoff commented Nov 2, 2016

Just found the same in Builder::value() ;)

@vlakoff
Copy link
Contributor

vlakoff commented Nov 2, 2016

After a few tries on PHP 5.6, it seems to actually have a O(N) complexity, and is a little slower than previous method.

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.

3 participants