|
|
|
|
|
by pkolaczk
1638 days ago
|
|
Don't know how .Net, but many times I found that Java HotSpot compiler is weaker in optimisation strength than C, C++ and Rust compilers. For instance see this: https://pkolaczk.github.io/overhead-of-optional/ As for databases, C++ has not only a performance edge over Java (and possibly .NET) but it also offers superior non-memory resource management capabilities. Databases manage a lot of resources that are not memory, and RAII is a game changer. |
|
Especially when you return a value, it is more than likely to escape.