-
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.
all: delay compiling global regexes and templates
This shaves off about 0.1ms and 2000 allocs from the total init time cost of cmd/cue, which is a small but worthwhile win as measured by benchinit plus benchstat: │ old │ new │ │ sec/op │ sec/op vs base │ CuelangOrgGoCmdCue 1.465m ± 5% 1.363m ± 4% -6.96% (p=0.002 n=6) │ old │ new │ │ B/op │ B/op vs base │ CuelangOrgGoCmdCue 1.253Mi ± 0% 1.095Mi ± 0% -12.58% (p=0.002 n=6) │ old │ new │ │ allocs/op │ allocs/op vs base │ CuelangOrgGoCmdCue 10.275k ± 0% 8.181k ± 0% -20.38% (p=0.002 n=6) Signed-off-by: Daniel Martí <[email protected]> Change-Id: I552116f9e2c1d9c240a21cf044e80961b394c5bb Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1198994 TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Roger Peppe <[email protected]>
- Loading branch information
Showing
5 changed files
with
31 additions
and
13 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
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