Add StaticRegexReplace which can be used in place of RegexReplace when the...
Add StaticRegexReplace which can be used in place of RegexReplace when the regex pattern and rewrite are fixed. This allows the Op to perform the expensive regex compilation once upon creation instead of with each call to compute. Refactors RegexReplace to allow forwarding/inplace replacement when it is the sole consumer of an input. This should be a noop functionally but improve performance. RELNOTES: Performance improvements for regex replace operations. PiperOrigin-RevId: 209255096
Loading
Please sign in to comment