-
-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
models.gitrepo: Add some micro-optimizations
GitRepoModel._create_dir_entry() gets called many times for large repos so avoid expensive "." lookups where possible. GitEntryManager.entry() now uses a local reference to its instance dictionary to avoid doing extra Python name lookups. Signed-off-by: David Aguilar <davvid@gmail.com>
- Loading branch information
Showing
1 changed file
with
10 additions
and
6 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