Skip to content

Conversation

@G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Nov 5, 2022

This greatly improves performance when running on huge projects - I can't see any difference when running against the Jest codebase, but if I stick 3-4 copies of typescript.js (which is 10mb in size) then without this linting takes more than 3 minutes (I didn't let it finish) whereas afterwards it takes 30-60 seconds.

Weirdly this has also highlighted some test cases that apparently we didn't have yet somehow our coverage which has made me a little suspect that this could have changed behaviours, but all our tests are passing and there's no way to know for sure without having someone try this 🤷

Finally, I realised that scopeHasLocalReference is actually a complete duplication of resolveScope so have replaced that.

@G-Rath G-Rath merged commit 0e048f1 into main Nov 10, 2022
@G-Rath G-Rath deleted the improve-perf-again branch November 10, 2022 18:03
github-actions bot pushed a commit that referenced this pull request Nov 10, 2022
## [27.1.5](v27.1.4...v27.1.5) (2022-11-10) ### Performance Improvements * use `Set` instead of iterating, and deduplicate a function ([#1278](#1278)) ([0e048f1](0e048f1))
@github-actions
Copy link

🎉 This PR is included in version 27.1.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment