-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
getSnippetHash
: Use regexp instead of parsing whole AST (#759)
* `getSnippetHash`: Use regexp instead of parsing whole AST When calculating the env hash to use as cache keys, we don't need an exact list of imports Therefore, to improve performance, we can replace the current strategy of using the AST by a regexp strategy. This new strategy can lead to false positives (e.g. a string containing import 'foo') but this is not an issue for the hashing function. All that matters is that the hash is consistent and accounts for all files (no false negatives) * Check for Abs errors
- Loading branch information
1 parent
12e8cf0
commit 0aba526
Showing
1 changed file
with
31 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters