Browse Source

Performance improvement.

[SVN r28843]
Markus Schöpflin 21 years ago
parent
commit
91e474ffac
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tools/regression/process_jam_log.cpp

+ 5 - 0
tools/regression/process_jam_log.cpp

@@ -478,6 +478,11 @@ namespace
 
 int cpp_main( int argc, char ** argv )
 {
+  // Turn off synchronization with corresponding C standard library files. This
+  // gives a significant speed improvement on platforms where the standard C++
+  // streams are implemented using standard C files.
+  std::ios::sync_with_stdio(false);
+
   if ( argc <= 1 )
     std::cout << "Usage: bjam [bjam-args] | process_jam_log [--echo] [--create-directories] [--v2] [locate-root]\n"
                  "locate-root         - the same as the bjam ALL_LOCATE_TARGET\n"

粤ICP备19079148号