-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.1.0] Avoid exception-based control flow in RAFS#getDigest and RAFS…
…#getFastDigest. (#21264) In the same spirit as 9a86600, avoid unnecessarily allocating a FileNotFoundException when it's not going to be propagated. It makes getFastDigest rather slow in the failure case. This requires changing the contract of statUnchecked (now statInternal) to return null on not found, leaving the decision of whether to throw an exception up to the caller. I/O exceptions other than not found are always propagated, as before. Also improve consistency in terminology: * "deferencing a path" => "canonicalizing a path" * "in-memory filesystem" => "remote output tree" PiperOrigin-RevId: 604973882 Change-Id: I1f78b8c5cce3707eb0608a8c0c85a2b04445a510
- Loading branch information
Showing
2 changed files
with
49 additions
and
45 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