Because they not only allocate memories but also free them. Running GC over large amount of objects is an expensive task.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Is Rust really faster than Java because of memory management? | 18 | 14605 | December 7, 2022 | |
Why is it so slow? Java beats Rust? What's more, Rust doesn't beat Python too much | 23 | 1984 | April 1, 2021 | |
Focus on String, Rust vs Java, 5.23 seconds vs 464 milliseconds? | 15 | 2595 | April 21, 2021 | |
Why my rust code is much more slower than cpp | 7 | 327 | December 26, 2024 | |
Rust Slower than Java JDK 11+ | 5 | 453 | January 10, 2024 |