C/C++
cppperf.txt
Associated article: Improving C++ Program Performance
Tags: C/C++
Published source code accompanying the article by Stanley Lippman in which he examines the three most common strategies for C++ program speedup, then points out that it often enough to simply review the code for inappropriate C++ programming idioms.
Improving C++ Program Performance
by Stanley Lippman
Listing One
class Vector {
friend Vector
operator+( const Vector&, const Vector& );
friend Vector
operator-( const Vector&, const Vector& );
public:
Vector( double x=0.0,
double y=0.0, double z=0.0 );
Vector( const Vector&...


