3 ms·
As long as you avoid "virtual", I can't even think of any C++ features which would lead you towards worse performance characteristics than C. Templates may blo
by TillE 10y ago
As long as you avoid "virtual", I can't even think of any C++ features which would lead you towards worse performance characteristics than C.
Templates may bloat your binary size and increase compile times, but they're plenty fast.
- okasaki 10y agoThere's also making unnecessary copies of things like strings and vectors passed to functions and exception overhead (in binary size at least)
- fnj 10y agoRvalue references and std::move have largely obsoleted the argument of copy overhead. It makes particularly a dramatic improvement in container efficiency. C++11/14 really is a different language than C++98.