2 ms·
> Above all of that real-world performance comes from proper system-level design There are situations where "proper system-level design" just doesn't cut it, a
by klibertp 11y ago
> Above all of that real-world performance comes from proper system-level design
There are situations where "proper system-level design" just doesn't cut it, and even traditional "rewrite this module in C" doesn't work, because there is no single module to optimize, but rather system is being slowed down by many little overheads all over the place. JITs help with this, but they are not always available. It really pays off to switch to the language with less overall overhead and a focus on performance if you find yourself in such a situation.
> and using a low-level language (be it C, C++ or assembly)
C++ is not a low-level language.
- stass 11y agoIt is by all accounts. It pretty much relies on the underlying machine memory model, and ordering of operations in a C++ program directly corresponds to the resulting ordering of the operations on the machine it is running on. Furthermore, the language itself is clearly speicific to register machines and follows the corresponding semantics -- it'd be hard to target other kinds of computers from C++.