[tools.regression] performance patch

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 += "<";

John Maddock wrote:
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?
No one intereted? Or should I just go on and commit the patch myself?
Probably yes :-)
Your patch did look fine to me BTW.
Ok, done. Thanks for the feedback. Markus
participants (2)
-
John Maddock
-
Markus Schöpflin