Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Creating an aggregate engine is slow because every time a default fixed flow descriptor is loaded from the classpath as XML and parsed.
FixedFlowController
public static FlowControllerDescription getDescription() { URL descUrl = FixedFlowController.class .getResource("/org/apache/uima/flow/FixedFlowController.xml"); FlowControllerDescription desc; try { desc = (FlowControllerDescription) UIMAFramework.getXMLParser().parse( new XMLInputSource(descUrl)); } catch (InvalidXMLException e) { throw new UIMARuntimeException(e); } catch (IOException e) { throw new UIMARuntimeException(e); } return desc; }
IMHO, this should be loaded once and then cached permanently - or be constructed completely programmatically (also once!) and never loaded at all.
Attachments
Attachments
Issue Links
- links to