Skip to content

Sanity check on regular_expression_gen execution time #197

Closed Answered by comaniac
eaubin asked this question in Q&A
Discussion options

You must be logged in to vote

SRT takes a long time to generate FSM for the regex when seeing that for the first time. In other words, you should get an obvious speedup starting from the second request with the same regex. Also note that the generated FSM is persist on disk, so you shouldn't have to wait for another 2 minutes even you re-launch the server. On the other hand, if you change the regex or re-launch the server on a different file system (e.g., different user or docker container), then you may need to wait again.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eaubin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants