Re:Rust is now overall faster than C in benchmarks
by wink on Sunday January 03, 2021 @07:44PM
(#25626780)
You can't really compare C with a C++ stdlib or boost, or Qt. Well, some organizations surely have their own repo of debugged, tested, and optimized stuff but I guess a lot of them roll everything on their own again and again - and in C++ there is a rich ecosystem, at least for basic data structures.
[ Parent
| on HN ]
Re:Rust is now overall faster than C in benchmarks
by RcouF1uZ4gsC on Sunday January 03, 2021 @09:28PM
(#25627384)
The other thing that C++ and Rust have for collections and algorithms is that they follow a standard pattern.
Because of that, it is usually pretty easy to substitute an optimized algorithm or a container for another one with minimal code changes. In C, because there is no standard for how to do containers and algorithms, it is likely that every library does something a little different in terms of conventions making it harder to swap in implementations.