TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Performance Impact of Functional Programming in Java

1 点作者 s4ik4t将近 5 年前

1 comment

zelphirkalt将近 5 年前
&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.