Skip to content

Instantly share code, notes, and snippets.

View mattyclarkson's full-sized avatar

Matt Clarkson mattyclarkson

View GitHub Profile
@mattyclarkson
mattyclarkson / pimpl-performance-test.cpp
Created January 24, 2013 17:08
Are the benefits of private implementations worth the performance trade offs.
#include <cassert>
#include <chrono>
#include <iostream>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <unordered_map>
///////////////////////////////////////////////////////////////////////////////
#ifdef ENABLE_LOGGING
# define LOG(x) std::clog << x << std::endl