Optimizer: enable by default (#28213)

This commit is contained in:
andig 2026-04-02 19:50:29 +02:00 • committed by GitHub
parent f24b670312
commit b93061bc86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 151 additions and 6 deletions

View file

@ -392,6 +392,7 @@ func runRoot(cmd *cobra.Command, args []string) {
valueChan <- util.Param{Key: keys.System, Val: util.System()}
valueChan <- util.Param{Key: keys.Timezone, Val: time.Now().Format("MST -07:00")}
valueChan <- util.Param{Key: keys.Experimental, Val: isExperimental()}
valueChan <- util.Param{Key: keys.Optimizer, Val: isOptimizer()}
// run shutdown functions on stop
var once sync.Once

View file

@ -1315,3 +1315,9 @@ func isExperimental() bool {
b, _ := settings.Bool(keys.Experimental)
return b
}
// isOptimizer returns if optimizer is enabled
func isOptimizer() bool {
b, _ := settings.Bool(keys.Optimizer)
return b
}