Skip to content

Commit cd724ee

Browse files
jnthntatumcopybara-github
authored andcommitted
Update documentation for regex_precompilation.h.
PiperOrigin-RevId: 736863110
1 parent 4ca6f0b commit cd724ee

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

runtime/regex_precompilation.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,15 @@
1616
#define THIRD_PARTY_CEL_CPP_REGEX_PRECOMPILATION_FOLDING_H_
1717

1818
#include "absl/status/status.h"
19-
#include "common/memory.h"
2019
#include "runtime/runtime_builder.h"
2120

2221
namespace cel::extensions {
2322

24-
// Enable constant folding in the runtime being built.
23+
// Enable regular expression precompilation.
2524
//
26-
// Constant folding eagerly evaluates sub-expressions with all constant inputs
27-
// at plan time to simplify the resulting program. User extensions functions are
28-
// executed if they are eagerly bound.
29-
//
30-
// The provided memory manager must outlive the runtime object built
31-
// from builder.
25+
// Attempts to precompile regular expression patterns that are known to be
26+
// constant in 'match' calls. If an invalid pattern is encountered, expression
27+
// planning will fail instead of returning a program.
3228
absl::Status EnableRegexPrecompilation(RuntimeBuilder& builder);
3329

3430
} // namespace cel::extensions

0 commit comments

Comments
 (0)