forked from autotest/autotest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils/check_patch.py: Speed and memory usage improvements
Turns out we had a bug in the code that verified whether a file was tracked by git. With the bug fixed, a lot less files will be scanned. Moreover, expand the list of blacklisted extensions and paths, making it faster to check the tree, even if you have logs in it. Also, instead of creating multiple file checker objects, that will be stored in memory, refactor the existing one to process several files and use it. This greatly saves memory. Signed-off-by: Lucas Meneghel Rodrigues <[email protected]>
- Loading branch information
Showing
1 changed file
with
29 additions
and
24 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