DaveAKing / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

feature request: FluentConcurrentIterable #1422

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
See original post at SO: http://stackoverflow.com/questions/16568993

Would be great to have a multi-threaded utility class similar to 
`FluentIterable`, which would do exactly what `FluentIterable` is doing, but in 
multiple threads. I'm ready to submit its code together with unit tests (since 
I already implemented it for my own needs). Let me know what do you think.

Original issue reported on code.google.com by egor@technoparkcorp.com on 22 May 2013 at 7:06

GoogleCodeExporter commented 9 years ago
I'm sympathetic to this, and I'd definitely like to see your implementation, 
but:

- Whatever we do here, JDK8 will do much, much, much better with parallel 
streams.
- JDK8's implementation is pretty heavily ForkJoinPool-dependent, and I just 
don't know if that's strictly necessary to get peak efficiency, or what, and if 
we'd need JDK7 to approximate that performance.

To be sure, we've done "poor man's substitutes" for JDK features before, 
specifically including Closer as a substitute for try-with-resources.

If we do pursue this, I'd be hesitant to do it without making it really good, 
despite the substantial effort that would involve.

Original comment by lowas...@google.com on 22 May 2013 at 7:18

GoogleCodeExporter commented 9 years ago
The SO poster even says "I think Java 8 streams will do something like this" -- 
yes, a TON of work has gone into that, and it's in every way what you want, so 
the question is only "but I want it sooner". We should not spend any time 
duplicating their effort.

Original comment by kevinb@google.com on 24 May 2013 at 2:46

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<issue id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:12

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08