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

Optimize the execution time of the unique method #39822

Merged
merged 3 commits into from Nov 30, 2021

Conversation

tonylevid
Copy link
Contributor

When passing a large array, the unique method is very slow.
This modification can increase the speed by hundreds of times,
and it is also suitable for most scenarios.

When passing a large array, the unique method is very slow. 
This modification can increase the speed by hundreds of times, 
and it is also suitable for most scenarios.
@tonylevid
Copy link
Contributor Author

This is a screenshot of the execution time comparison.
20211130105033
20211130105133

@taylorotwell taylorotwell merged commit 48a53be into laravel:8.x Nov 30, 2021
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.

None yet

2 participants