What is the status of JEP draft: "Predictable regex performance"?

Raffaello Giulietti raffaello.giulietti at gmail.com
Mon Apr 12 15:37:46 UTC 2021


Hello,

I'm just curious about the status of the important project described by 
"JEP draft: Predictable regex performance" [1].

Afaiu, there are mentions about:
* Using the native re2 library [2] via JNI, with the cons that usage 
becomes kind of unnatural, like "closing" the pattern to release native 
resources.
* Possibly porting re2 to Java, but it seems rather big, several kLOC.
* Adopting/adapting the incomplete and unmaintained re2j [3] Java 
implementation of re2.
* Using the sregex project [4], but it's unclear to me what makes it 
substantially different from re2.

Less clear is whether the project is still exploring various 
alternatives in addition to the above ones or has started to converge 
towards a preferred choice.


Greetings
Raffaello

----

[1] https://openjdk.java.net/jeps/8260688
[2] https://github.com/google/re2
[3] https://github.com/rapid7/re2-java
[4] https://github.com/openresty/sregex


More information about the core-libs-dev mailing list