On Thu, Jul 28, 2011 at 11:50 AM, Chris Foster <[email protected]> wrote: > Results: > | | total compile time | a.out size (stripped) > | printf | 1.2s | 44K (36K) > | tinyformat | 12.9s | 172K (140K) > | tinyformat, c++0x mode | 14.8s | 172K (140K) > | tinyformat, no inlines | 12.0s | 128K (100K) > | boost::format | 51.6s | 772K (676K) > | std::ostream | 8.5s | 84K (64K)
Correction: It appears I was quite wrong about this for the current source. The above results are without optimizations turned on, which of course will change the bloat calculation a lot due to inlining, which is the whole point (duh!) Running the tinyformat test again with -O3 gives a massive 1.6Mb executable, ouch! I managed to get that horrible number back down to 112K (88K stripped) in a few minutes of fiddling using a combination of __attribute__((noinline)) and moving some things to a cpp file. So your questions were spot-on Larry, this still needs some work. ~Chris _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
