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

Conservatively process control commands #584

Closed

Conversation

srawlins
Copy link
Contributor

@srawlins srawlins commented Sep 2, 2015

Processing control command comments on every single node in a file (Linter#visit), for every single linter, seems heavy. I've changed the workflow to only search for control commands if the file has any at all (presumably, most files don't).

Linting Bootstrap 4 Alpha took ~11 seconds before this fix, and ~9 seconds after this fix.

@srawlins srawlins force-pushed the conservatively-process-control-comments branch from 7d0e272 to 033a2b8 Compare September 2, 2015 17:39
@sds sds added the enhancement label Sep 4, 2015
@sds
Copy link
Owner

sds commented Sep 4, 2015

Nice find, @srawlins. Thanks again for your efforts on improving the tool's performance.

Merged in 33cf2bc.

@sds sds closed this Sep 4, 2015
@srawlins srawlins deleted the conservatively-process-control-comments branch October 6, 2015 00:40
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.

None yet

2 participants