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

Robert Muir updated LUCENE-3731:
--------------------------------

    Attachment: LUCENE-3731_speed.patch

Hi Tommaso, I noticed some of the tests here are really slow... digging in I 
think we have some perf issues:
{noformat}
junit-sequential:
   [junit] Testsuite: org.apache.lucene.analysis.uima.UIMABaseAnalyzerTest
   [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 52.302 sec
   [junit]
   [junit] Testsuite: org.apache.lucene.analysis.uima.UIMATypeAwareAnalyzerTest
   [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 38.506 sec
   [junit]
   [junit] Testsuite: org.apache.lucene.analysis.uima.ae.BasicAEProviderTest
   [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.02 sec
   [junit]
   [junit] Testsuite: 
org.apache.lucene.analysis.uima.ae.OverridingParamsAEProviderTest
   [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1.042 sec
   [junit]
{noformat}

See the patch below (which cannot be committed yet)... currently i had to add 
sync around the analysis engine, but it avoids recreating the CAS for each 
document... which seems to cause the perf problems

{noformat}
junit-sequential:
    [junit] Testsuite: org.apache.lucene.analysis.uima.UIMABaseAnalyzerTest
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 3.858 sec
    [junit] 
    [junit] Testsuite: org.apache.lucene.analysis.uima.UIMATypeAwareAnalyzerTest
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.731 sec
    [junit] 
    [junit] Testsuite: org.apache.lucene.analysis.uima.ae.BasicAEProviderTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.009 sec
    [junit] 
    [junit] Testsuite: 
org.apache.lucene.analysis.uima.ae.OverridingParamsAEProviderTest
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1.058 sec
    [junit] 
{noformat}

                
> Create a analysis/uima module for UIMA based tokenizers/analyzers
> -----------------------------------------------------------------
>
>                 Key: LUCENE-3731
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3731
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 3.6, 4.0
>
>         Attachments: LUCENE-3731.patch, LUCENE-3731_2.patch, 
> LUCENE-3731_3.patch, LUCENE-3731_4.patch, LUCENE-3731_speed.patch
>
>
> As discussed in SOLR-3013 the UIMA Tokenizers/Analyzer should be refactored 
> out in a separate module (modules/analysis/uima) as they can be used in plain 
> Lucene. Then the solr/contrib/uima will contain only the related factories.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to