-
Bug
-
Resolution: Fixed
-
P5
-
None
-
None
-
b87
Currently Nashorn compiles each regexp literal twice, once to validate the expression and once to compile it. This is less of a problem with java.util.regex as it compiles pretty fast, but more so with Joni and especially Joni + ASM compilation.
Two options are to either introduce a validate-only compile mode or to cache compiled expressions in the regexp factory.
Two options are to either introduce a validate-only compile mode or to cache compiled expressions in the regexp factory.