TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Performance Impact of Functional Programming in Java

1 pointsby s4ik4talmost 5 years ago

1 comment

zelphirkaltalmost 5 years ago
&gt; Creating a new object is always expensive. Lambda functions are basically anonymous inner functions. So using a functional algorithm always creates zillions of objects, adding a lot of pressure on the garbage collector.<p>If that is true, it means to me, that the compiler is too stupid to transform the code into something, which does not create the same objects over and over again.