Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-02-06 11:38:02


From: "Brey, Edward D" <EdwardDBrey_at_[hidden]>
> An excellent argument for maximizing the user of the pch. With so many
> recompilations, incremental overhead really adds up.

Useless data point #5: the largest source file in one of my projects is 2380
lines long (mainly because I've been lazy and didn't refactor it.) It
compiles for 3.62 seconds, no precompiled headers. (This doesn't include the
code generation.) Here's the beginning of the file for reference:

#ifdef _MSC_VER

#pragma warning(disable: 4786) // identifier truncated to 255 chars

#pragma warning(disable: 4710) // function not inlined

#endif

#define BOOST_BIND_ENABLE_STDCALL

// #include <lib/msstd.hpp>

#include <cmath>

#include <cstdlib>

#include <cstdio>

#include <ctime>

#include <tchar.h>

#include <sys/types.h>

#include <sys/stat.h>

#include <io.h>

#define NOMINMAX

#define WIN32_LEAN_AND_MEAN

#include <windows.h>

#include <commdlg.h>

#include <commctrl.h>

#ifdef _MSC_VER

#pragma warning(push, 3)

#pragma warning(disable: 4702) // unreachable code

#endif

#include <algorithm>

#include <vector>

#include <string>

#include <fstream>

#include <set>

#include <map>

#include <mmsystem.h>

#ifdef _MSC_VER

#pragma warning(pop)

#endif

#include <boost/function.hpp>

#include <boost/bind.hpp>

#include <boost/mem_fn.hpp>

#include <ddraw.h>

#include "resource.h"

#include <dbg/dprintf.hpp>

#include <dbg/assert.hpp>

#include <com/dbg.hpp>

#include <win32/font.hpp>

#include <win32/api.hpp>

#include <win32/dialog.hpp>

#include <winl/dispatcher.hpp>

#include <winl/winl.hpp>

#include <d2dl/d2dl.hpp>

#include <img/image.hpp>

#include <img/render.hpp>

#include <math/point2.hpp>

#include <math/point3.hpp>

#include <math/pi.hpp>

#include <math/angle.hpp>

#include <math/round.hpp>

#include <math/perlin2.hpp>

#include <math/fbm.hpp>

#include <io/file.hpp>

#include <io/lsb_writer.hpp>

#include <io/packer.hpp>

#include <io/vector.hpp>

#include <io/unpacker.hpp>

#include <io/lsb_reader.hpp>

#include <io/set.hpp>

#include <io/binary_reader.hpp>

#include <lib/algorithm.hpp>

#include <lib/callback.hpp>

#include <p3l/map/common.hpp>

#include <p3l/map/generate.hpp>

#include <p3l/map/render.hpp>

#include <p3l/gfx/toscreen.hpp>

#include <p3l/vx/vx.hpp>

#include <p3l/light.hpp>

#include "plants.hpp"

#include "comdlg.hpp"

#include "brush.hpp"


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk