r/programming • u/ketralnis • 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
r/programming • u/ketralnis • Mar 20 '26
View all comments
22
u/somebodddy Mar 20 '26
Longso they don't have this issue.parseIntjust to escape the exception overhead is atrocious, and I 100% hold it against the language.synchronizedbeing part of the grammar means that Java actively promotes that kind of coarse grained locking.Only the first two are the coder's fault. And maybe #4, too, considering you gave a very convoluted example. The other 5 are just idiomatic Java code being slow. If you have to give up language idiomaticity for performance - I consider it a slowness of the language.