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

Joerg Budischewski commented on COLLECTIONS-722:
------------------------------------------------

After reevalutating, I came to the conclusion that the stale fix 
https://github.com/apache/commons-collections/pull/308 by [~stevebosman] from 
Collections-770 is the better fix for Collections-722.
I renovated the old PR as 
[https://github.com/apache/commons-collections/pull/628] and added the 722er 
test code as evidence, that this issue is fixed by it.
Note, that this PR won't fix Collections-770 completely (see my recent comment 
there, it can easily be fixed by the user).

> IteratorUtils.chainedIterator() Performance Degrades
> ----------------------------------------------------
>
>                 Key: COLLECTIONS-722
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-722
>             Project: Commons Collections
>          Issue Type: Bug
>    Affects Versions: 4.1
>            Reporter: E P
>            Priority: Major
>         Attachments: IteratorUtilsTest.java, 
> chainedIterator-CheckForSelf-Patch-Suggestion.txt
>
>
> IteratorUtils.chainedIterator() performance degrades when chaining iterators 
> with chained iterators.   The slowdown appears to be exponential, based upon 
> the number of chains created.  The attached test shows the issue.  
> As a reference, the same test below works as expected using Google's Guava 
> Iterator.concat() functionality.   It is possible I am misusing the API, but 
> the javadoc did not indicate as much.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to