-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A cache that makes sense across both the cue/load logic and the mod/... logic cannot be implemented in terms of cue/load abstractions such as `build.File` because we don't want the module code to depend on cue/build. Instead, it makes more sense to cache more basic operations such the names inside a directory. Creating a `*build.File` from a filename is now cheaper since the previous change (https://review.gerrithub.io/c/cue-lang/cue/+/1197557), so taking both CLs into account, performance actually slightly improves overall. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I043a4229f9b78dbccb5fbe140e57765a8a11b5f8 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1197521 Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
- Loading branch information
Showing
2 changed files
with
37 additions
and
36 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