-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perform scm updates only on certain events
Updates were previously executed by way of a coroutine every second. Even with a cache system in place this caused a performance degradation since git had to scan whole directories for changes. Now we rely on various events instead by hooking into core functions: * DirWatch:check when returning true * DirWatch:watch * DirWatch:unwatch * core.add_project * core.remove_project * core.set_project * core.open_project Now, only the branch is been updated on a coroutine every second, that operation should be fast. Maybe on the future we can instead dirwatch specific scm files/folders like .git or .fslckout.
- Loading branch information
Showing
2 changed files
with
94 additions
and
3 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
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