[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Classpath regexp code
From: |
Ziga Mahkovec |
Subject: |
Re: Classpath regexp code |
Date: |
Thu, 19 May 2005 17:16:45 +0200 |
On Wed, 2005-05-18 at 10:42 -0600, Tom Tromey wrote:
> Anthony> I recently stumbled across the fact that gnu.regexp doesn't perform
> Anthony> nearly as well as many other regexp implementations in java.
>
> Anthony> Here's some detail on an experiment I did with JRegex:
> Anthony> http://www.spindazzle.org/green/index.php?p=49
>
> I sent some email to the JRegex guy to ask how he felt about
> incorporating it into Classpath.
Since I recently wrote some Mauve tests[1] for java.util.regex, I
decided to run them against jregex. It failed on 15/360 tests (results
attached).
Some of the failing regular expressions are rather obscure, but most
notably it doesn't support quoting constructs (which were recently added
to libgcj since Eclipse uses them extensively). I filed a feature
request; and it shouldn't be difficult to implement this if it gets
incorporated.
The testlets aren't meant as a benchmark, but jregex did finish much
faster: 0.484s vs. 3.931s for gnu.regex (both running jamvm).
[1] https://savannah.gnu.org/bugs/?func=detailitem&item_id=12307
--
Ziga
mauve-jregex.log.gz
Description: GNU Zip compressed data