[llvm-commits] [llvm] r54855 - in /llvm/trunk: include/llvm/Support/raw_ostream.h lib/Support/raw_ostream.cpp

Chris Lattner clattner at apple.com
Sat Aug 16 18:43:31 PDT 2008


On Aug 16, 2008, at 6:35 PM, Chris Lattner wrote:
> Author: lattner
> Date: Sat Aug 16 20:35:29 2008
> New Revision: 54855
>
> URL: http://llvm.org/viewvc/llvm-project?rev=54855&view=rev
> Log:
> add a new raw_ostream class which is an extremely high performance  
> ostream that
> can *only* output data (no seeking, reading, etc).  This is adapted  
> from the
> clang "-E outputter", and is roughly 10% faster than stdio on darwin  
> and 30%
> (or more) faster than std::ostream.

Sorry, my timings were wrong.  This is 18% faster than stdio, and 70%  
faster than std::ostream for Clang's -E command (which has to lex the  
file in addition to just printing stuff, so the difference is even  
higher).

-Chris



More information about the llvm-commits mailing list