hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Purtell (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-11907) Use the joni byte[] regex engine in place of j.u.regex
Date Wed, 24 Sep 2014 05:20:34 GMT

     [ https://issues.apache.org/jira/browse/HBASE-11907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Andrew Purtell updated HBASE-11907:
    Attachment: HBASE-11907.patch

Here's a patch for trunk that adds the joni regex engine as a backwards compatible option
for RegexStringComparator and a new test that runs a subset of the OpenJDK 7 regex tests through
both the Java and joni engine options.

Since we'd be pulling in the joni engine via hbase-client after this change, any use of j.u.regex
in hbase-client or hbase-server could be replaced. Let me look at that next if the current
patch is not objectionable.

> Use the joni byte[] regex engine in place of j.u.regex
> ------------------------------------------------------
>                 Key: HBASE-11907
>                 URL: https://issues.apache.org/jira/browse/HBASE-11907
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>             Fix For: 2.0.0, 0.98.7, 0.99.1
>         Attachments: HBASE-11907.patch
> The joni regex engine (https://github.com/jruby/joni), a Java port of Oniguruma regexp
library done by the JRuby project, is:
> - MIT licensed
> - Designed to work with byte[] arguments instead of String
> - Capable of handling UTF8 encoding
> - Regex syntax compatible
> - Interruptible
> - *About twice as fast as j.u.regex*
> - Has JRuby's jcodings library as a dependency, also MIT licensed

This message was sent by Atlassian JIRA

View raw message