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

UnusedUsesSniff: improve performance #932

Merged
merged 1 commit into from
Mar 24, 2020

Conversation

nightlinus
Copy link
Contributor

As of my test file 8k lines 1 namespace, check was going to be 5s.
With batch namespace lookup check go down to 1s.

Although i don't like that we make extra iterations by referencedNames, but it should be faster without findPrevious() calls.

Relates to #929

@kukulich kukulich merged commit e2a057b into slevomat:master Mar 24, 2020
@kukulich
Copy link
Contributor

Thanks.

@kukulich kukulich added this to the 6.2.0 milestone Mar 24, 2020
@kukulich
Copy link
Contributor

I've tried another improvement: 9dac280

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.

2 participants