-
Hello, I'm working with Vector and have a query regarding its regex capabilities in the remap language, specifically about compilation and caching. In my setup, I use various regex patterns within a remap transform, as shown below:
I plan to introduce more patterns and am concerned about potential performance impacts. My questions are:
Your insights would be greatly appreciated. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Regexes are, generally, compiled once at start-up. The only exception is the
There is no caching, no, but again, static regexes are compiled upfront. #137 is tracking an enhancement to VRL to allow for caching within functions. If it existed, we'd take advantage of it with |
Beta Was this translation helpful? Give feedback.
Regexes are, generally, compiled once at start-up. The only exception is the
to_regex
function which does it at run time.There is no caching, no, but again, static regexes are compiled upfront. #137 is tracking an enhancement to VRL to allow for caching within functions. If it existed, we'd take advantage of it with
to_regex
.