Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #37771
| Path | csiph.com!news.bbs.geek.nz!.POSTED.agency.bbs.geek.nz!not-for-mail |
|---|---|
| From | Sebastian <nowhere@nirvana.org> (Sebastian) |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Can I put a filter into a lambda? |
| Date | Fri, 08 Dec 2017 15:00:58 +1200 |
| Organization | fsxNet Usenet Gateway | bbs.geek.nz/#fsxNet |
| Message-ID | <1913807097@f38.n261.z1.binkp.net> (permalink) |
| References | <4063469279@f38.n261.z1.binkp.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| Injection-Info | news.bbs.geek.nz; posting-host="M6YmRdZYyc42DJk0lNlt/X4dpP4dzvceBNabSmESN3E"; logging-data="25937"; mail-complaints-to="abuse@news.bbs.geek.nz" |
| User-Agent | VSoup v1.2.9.47Beta [95/NT] |
| X-MailConverter | SoupGate-Win32 v1.05 |
| X-Comment-To | Eric Sosman |
| Xref | csiph.com comp.lang.java.programmer:37771 |
Show key headers only | View raw
Am 04.12.2017 um 15:29 schrieb Eric Sosman: > > I don't know which of these might be faster, or whether either > might be faster than a plain old `for' loop. (Research project.) > > FWIW, Brian Goetz (who knows far more about JVM performance > issues than I ever will) indicates that object allocation and > collection is cheaper than commonly thought, so there's little > if any advantage to re-using the same List object: > > https://www.ibm.com/developerworks/java/library/j-jtp09275/index.html > > ... which means even more research may be indicated. (The cited > article is twelve years old, and we may expect that JVM's have > continued to improve meanwhile). > Angelika Langer did some research into the performance of streams vs. for loops when JDK 8 came out. It's referenced from this article, which puts performance, readability and maintainability into perspective: https://blog.jooq.org/2015/12/08/3-reasons-why-you-shouldnt-replace-your-for-lo ops-by-stream-foreach/ -- Sebastian
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Can I put a filter into a lambda? Eric Sosman <esosman@comcast-dot-net.invalid> (Eric Sosman) - 2017-12-04 09:29 +1200 Re: Can I put a filter into a lambda? Eric Douglas <e.d.programmer@gmail.com> (Eric Douglas) - 2017-12-04 07:14 +1200 Re: Can I put a filter into a lambda? Sebastian <nowhere@nirvana.org> (Sebastian) - 2017-12-08 15:00 +1200
csiph-web