You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2015/05/13 20:51:59 UTC
[jira] [Created] (UIMA-4393) Subiterators - avoid copying
Marshall Schor created UIMA-4393:
------------------------------------
Summary: Subiterators - avoid copying
Key: UIMA-4393
URL: https://issues.apache.org/jira/browse/UIMA-4393
Project: UIMA
Issue Type: Improvement
Components: Core Java Framework
Reporter: Marshall Schor
Assignee: Marshall Schor
Priority: Minor
Fix For: 2.7.1SDK
The current subiterator implementation starts by copying into a list all the valid values of the iterator; it then iterates over this.
Change this to avoid copying in many cases. Do the copying (converting to a list form of only valid FSs, and the previous implementation did) only when required (to support moveTo(FS) with unambiguous, reverse movement with ambiguous, moveToLast (for all styles). After conversion, the iterator will work as in the previous implementation, including not supporting ConcurrentModificationException (CME) signalling; before conversion, CME is supported (this is a behavior change).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)