creadur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Burroughs (JIRA)" <>
Subject [jira] [Updated] (RAT-174) CDDL1License still very slow
Date Thu, 11 Sep 2014 14:24:34 GMT


Chris Burroughs updated RAT-174:
    Attachment: r174.v1.patch

Replace expensive regex patterns with simple text checks

With this change `apache-rat:rat` is approxiatly the same speed with and without CDDL1License
checks enabled instead of being an order of magnitude slower.

Note: When developing I noticed that Illumos (the most prominent CDDL project I am aware of)
uses a slightly different string than what was in the unit tests.  The unit tests all pass,
but this is a behavior change.  For example some unrelated text and a mention of ``
would no longer match.  I don't have enough familiarty with CDDL users to know if even wider
variation is common.

> CDDL1License still very slow
> ----------------------------
>                 Key: RAT-174
>                 URL:
>             Project: Apache Rat
>          Issue Type: Bug
>    Affects Versions: 0.11
>            Reporter: Chris Burroughs
>         Attachments: r174.v1.patch
> This is on a laptop, but I think the disparity is large enough that it's sufficient test.
 With a moderate sized java project [1] `mvn apache-rat:rat` takes over 6 minutes.  With `CDDL1License.matches`
commented out it takes under 20 seconds.
> See also RAT-162
> [1]

This message was sent by Atlassian JIRA

View raw message