From bc483ec60c58be85ec5aee937949cfde2537656c Mon Sep 17 00:00:00 2001 From: Jonathan Tatum Date: Mon, 8 Jan 2024 11:39:05 -0800 Subject: [PATCH] Default enable lazy initialization for bind expressions. PiperOrigin-RevId: 596657314 --- eval/public/cel_options.h | 2 +- runtime/runtime_options.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eval/public/cel_options.h b/eval/public/cel_options.h index 672324de1..152c2a77a 100644 --- a/eval/public/cel_options.h +++ b/eval/public/cel_options.h @@ -169,7 +169,7 @@ struct InterpreterOptions { // never used in the result subexpression of the cel.bind() macro. This allows // for consistent behavior for CEL compiler optimized expressions that extract // subexpressions to cel.bind calls. - bool enable_lazy_bind_initialization = false; + bool enable_lazy_bind_initialization = true; }; // LINT.ThenChange(//depot/google3/runtime/runtime_options.h) diff --git a/runtime/runtime_options.h b/runtime/runtime_options.h index 0e1df1ecc..57bbdf50b 100644 --- a/runtime/runtime_options.h +++ b/runtime/runtime_options.h @@ -139,7 +139,7 @@ struct RuntimeOptions { // never used in the result subexpression of the cel.bind() macro. This allows // for consistent behavior for CEL compiler optimized expressions that extract // subexpressions to cel.bind calls. - bool enable_lazy_bind_initialization = false; + bool enable_lazy_bind_initialization = true; }; // LINT.ThenChange(//depot/google3/eval/public/cel_options.h)