Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2004-08-20 04:23:45


On my platform (tru64cxx65) the appended patch speeds up process_jam_log by
a factor of five(!). If the patch is ok, could anyone please apply it?

TIA, Markus


*** /vol1/tmp/boost/boost/tools/regression/process_jam_log.cpp Tue Aug 10 10:34:19 2004
--- process_jam_log.cpp Fri Aug 20 09:20:01 2004
***************
*** 50,55 ****
--- 50,58 ----
        || src.find( "cc1plus.exe: warning: as it has already been specified as a non-system directory" ) != string::npos
        ) return;
  
+ // on some platforms (e.g. tru64cxx) the following line is a real performance boost
+ target.reserve(src.size() * 2 + target.size());
+
      for ( string::size_type pos = 0; pos < src.size(); ++pos )
      {
        if ( src[pos] == '<' ) target += "&lt;";


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