On Mon, Jul 5, 2010 at 8:02 PM, Deven You <devyo...@gmail.com> wrote:

> I have written some simple benchmarks for harmony regex and find the
> performance of harmony is poor compared to RI. For example, Mathcer.find()
> only reach 60% of that of RI. I heard Android use icu4jni re-implement this
> module. Since icu4jni use native code I think it may has higher performance
> than harmony. I am trying to use icu4jni as the back-end of harmony regex
> but find icu4jni has no functions related to regex operations.
> I know there are some android guys in our community. So can anyone tell me
> some detail info for android's regex, like if it re-implement the regex
> logic using native code by android itself rather than icu4jni and really get
> higher performance compared to harmony regex? Thanks a lot!
>

We actually use icu4c's pattern, which we access via JNI. Documentation is
here:
  http://icu-project.org/apiref/icu4c/classRegexPattern.html

Our regex-java integration code is Apache-licensed and available in our Git
repository here:

http://android.git.kernel.org/?p=platform/libcore.git;a=tree;f=regex/src/main/java/java/util/regex;h=f9207d043a24d3dc034bf2cc3a5fdd57115692c3;hb=master

Reply via email to