Method RegEx():optimize() Foundation
Optimizes the pattern for faster execution.
:optimize( [<lJIT>] ) --> lSuccess
.T. (true) if the optimization was successful, .F. otherwise.
Performs an additional optimization step by analyzing the compiled pattern to gather information that can speed up matching. The pattern is compiled first if it has not been compiled yet.
In addition to increasing execution speed by applying hints gathered during the analysis, :optimize() can optionally compile the pattern into machine code if just-in-time compilation is enabled. This speeds up pattern matching even further.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.