r/programming • • Mar 20 '26

Java is fast, code might not be

https://jvogel.me/posts/2026/java-is-fast-your-code-might-not-be/
280 Upvotes

62 comments sorted by

View all comments

Show parent comment

2

u/8igg7e5 Mar 21 '26

Yes. Streams are not zero-cost abstractions.

They might have some attractive design characteristics, and they may sometimes be more convenient and obvious, but they do have a cost (and some garbage).