Repository navigation
Improve array_search type specifier performance - #1818
Merged
ondrejmirtes merged 1 commit intoOct 11, 2022
Merged
Conversation
rvanvelzen
force-pushed
the
array-search-type-spec-perf
branch
from
October 11, 2022 12:29
c58f75d to
38aa5ee
Compare
Contributor
|
haha, nice one |
ondrejmirtes
requested changes
Oct 11, 2022
rvanvelzen
force-pushed
the
array-search-type-spec-perf
branch
from
October 11, 2022 14:02
38aa5ee to
943ded7
Compare
Member
|
Something's fishy here. Without the change in Sure, 3x improvement is nice, but the numbers are nowhere near "~minute to ~10 seconds". Maybe something change meanwhile that also optimized this? |
Member
|
Thank you. |
Contributor
Author
|
I did reduce the test case a bit afterwards, which obviously reduces the runtime a bit. My machine was also quite busy which could have skewed the numbers a bit. |
Member
|
Makes sense 😊 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mostly resolves phpstan/phpstan#8147. The added integration test case went down from a ~minute to ~10 seconds locally.