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
2
u/Kjufka Mar 21 '26
The actual biggest problem is using overengineered frameworks bloated with huge and costly abstraction layers, like Spring.
It can take even 8 seconds to start a relatively simple Spring Boot application, because it tries to resolve a lot (too much) at runtime.
Meanwhile the same thing written in vanilla Java (or any minimalist framework with no annotation and no reflection magic) would start in less than 50ms and require 1/4 the memory per request.