forked from facebook/watchman
-
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.
watchman: cache Mercurial::getFilesChangedSinceMergeBaseWith results
Summary: This commit uses the same technique as we use for the mergeBase cache in the prior commit to produce a cache key, so that we'll effectively invalidate the results when the dirstate is changed. This provides both caching and thundering herd protection when multiple clients are performing SCM aware queries concurrently. We've had some issues in the past where we'd OOM a cgroup slice under the combined memory pressure of the the concurrent `hg` processes. Reviewed By: chadaustin Differential Revision: D22582273 fbshipit-source-id: 19f6a81b1c18831878f4a7aab4ec4a1ef82033da
- Loading branch information
1 parent
e2e877c
commit 5713a8d
Showing
2 changed files
with
36 additions
and
16 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