3 ms·
Nothing compares to C++ when it comes to sheer speed. If you want language X to do task Y as fast as C++, then you must use C++. The reason language X is slow
by 16s 15y ago
Nothing compares to C++ when it comes to sheer speed. If you want language X to do task Y as fast as C++, then you must use C++.
The reason language X is slow is because it's been made safe to use... it has lot's of checks and safety features to prevent accidents. It's not unlike an over-protective mother hovering around her child double-checking everything he picks up. And there's nothing wrong with that... unless you want to go fast.
The reason C++ is fast is because it allows programmers to do away with all the checks and safety features and just burn through CPU cycles. It doesn't hover over the programmer asking him if he really wants to do that... time and time again. It doesn't check behind every thing he does. It assumes that he's a big boy and that he understands the implications of his actions. C++ let's him run with scissors because sometimes it's OK (and even necessary) to do that.