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

Thilo Goetz commented on UIMA-1945:
-----------------------------------

Why not?  This is a perfectly normal recursive algorithm.  CAS lists (and FSs 
in general) are recursive data structures, and they come with recursive 
algorithms.  If your recursive data structures are so deep as to require an 
increased stack size, that seems perfectly natural to me.  Are we to disallow 
recursive algorithms on FSs in general?  Or flatten each when somebody 
encounters a problem?  I think not.


> convert recursive impl of CAS Copier to non-recursive to avoid out-of-stack 
> space errors
> ----------------------------------------------------------------------------------------
>
>                 Key: UIMA-1945
>                 URL: https://issues.apache.org/jira/browse/UIMA-1945
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>             Fix For: 2.3.1SDK
>
>
> User has reported running out of stack space - traced to long UIMA list which 
> was being copied using the CasCopier utility, which places two "calls" for 
> each element of the list on the Java stack.
> Convert this to a non-recursion implementation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to