uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Eckart de Castilho (JIRA)" <...@uima.apache.org>
Subject [jira] [Comment Edited] (UIMA-5801) Performance degradation of jCas.reset when repeatedly used in different analysisEngines
Date Wed, 27 Jun 2018 14:12:00 GMT

    [ https://issues.apache.org/jira/browse/UIMA-5801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16525126#comment-16525126
] 

Richard Eckart de Castilho edited comment on UIMA-5801 at 6/27/18 2:11 PM:
---------------------------------------------------------------------------

The uimaFIT API has no way at the moment to set resource managers for individual components.
There is only the global `ResourceManagerFactory` which has a `ResourceManagerCreator` strategy
that can be customized. It might be possible to implement a custom `ResourceManagerCreator`
which could return some pre-created global or thread-local resource manager.


was (Author: rec):
The uimaFIT API has no way at the moment to set resource managers for individual components.
There is only the global `ResourceManagerFactory` which has a `ResourceManagerCreator` strategy
that can be customized. It might be possible to implement a custom `ResourceManagerCreator`
which uses some global or thread-local resource manager.

> Performance degradation of jCas.reset when repeatedly used in different analysisEngines
> ---------------------------------------------------------------------------------------
>
>                 Key: UIMA-5801
>                 URL: https://issues.apache.org/jira/browse/UIMA-5801
>             Project: UIMA
>          Issue Type: Bug
>          Components: UIMA
>    Affects Versions: 2.1
>            Reporter: David Bürkle
>            Assignee: Marshall Schor
>            Priority: Major
>         Attachments: JCasPerformanceTest.java
>
>
> The execution time of jCas.reset() increases linearly when invoked on the same jCas.
> This occurs in a loop that builds a new analysisEngine, processes the jCas and resets
it.
> This does not occur when the same analysisEngine is reused.
> A junit test demonstrating the behaviour is attatched.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message