uschindler commented on PR #15823:
URL: https://github.com/apache/lucene/pull/15823#issuecomment-4132656807

   I just want to avoid all that all this untested crazy code dealing with 
Spliterators just to filter something in an iterator.
   
   One hint: when you only have an iterable, not a collection you may get a 
stream with: `StreamSupport.stream(iterable.spliterator(), false);`
   
   That said, I'd stay with Collection. Iterable is to generic. Collections 
have a size so preallocation works better.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to