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

Optimization: Add syntax check cache #1253

Merged
merged 1 commit into from May 14, 2015
Merged

Optimization: Add syntax check cache #1253

merged 1 commit into from May 14, 2015

Conversation

zertosh
Copy link
Member

@zertosh zertosh commented May 8, 2015

This PR introduces a caching system for the syntax check. It's a big optimization for repeat builds (think watchify). I had proposed this first in browserify/syntax-error#9, but substack suggested that it was better implemented here.

I went with a per instance cache instead of a global cache (though it could very safely be one) because I don't want to set the precedent that it's ok for Browserify to be stateful.

@zertosh
Copy link
Member Author

zertosh commented May 8, 2015

@mattdesl Thanks for pointing this out!

@terinjokes
Copy link
Contributor

LGTM.

zertosh added a commit that referenced this pull request May 14, 2015
Optimization: Add syntax check cache
@zertosh zertosh merged commit e08391c into master May 14, 2015
@zertosh zertosh deleted the syntax-error-cache branch May 14, 2015 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants