Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

faster IgnoredError->shouldIgnore() #736

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

Merged
ondrejmirtes merged 1 commit into phpstan:master from staabm:fast-ignore
Oct 25, 2021
Merged

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Oct 25, 2021
edited
Loading

object creation of FileExcluder requires a lot of path normalization.

this PR moves the object creation after the fast-exit IF condition, which prevents the object creation in most cases and leads to major speed improvements.

comparison before/after this change

grafik

grafik

also note a improvement in memory consumption.

profiles compared are based on the latest commit on master b726e08

voku reacted with heart emoji voku reacted with rocket emoji
@staabm staabm marked this pull request as ready for review October 25, 2021 13:00
@ondrejmirtes ondrejmirtes merged commit 0e42081 into phpstan:master Oct 25, 2021
Copy link
Member

Thank you!

@staabm staabm deleted the fast-ignore branch October 25, 2021 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /