-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backingstore: use nullptr for aux-not-found
Summary: Use nullptr intead of exceptions to represent the low level "not found" state for file and tree aux data. liubov-dmitrieva discovered through profiling that we spend a lot of CPU time on exceptions. In particular, we first try a local-only fetch, and if the aux data doesn't exist, we raise an exception and then enqueue the aux data to be fetched in allow-remote mode. I changed the low level SaplingNativeBackingStore::get{Blob,Tree}AuxData to use nullptr to mean not-found, and then updated callers. Note that I did not change the batch aux codepaths. Since these typically fetch remotely, "not found" results are not expected (so it is okay to keep using exceptions). Reviewed By: liubov-dmitrieva Differential Revision: D67545966 fbshipit-source-id: 73e8fa7a2584192faa13295870bff6c38eec0727
- Loading branch information
1 parent
06bd894
commit 134a06d
Showing
3 changed files
with
29 additions
and
33 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
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