[LLVMdev] Correct use of StringRef and Twine

Chris Lattner clattner at apple.com
Fri Jul 22 13:43:54 PDT 2011


On Jul 19, 2011, at 10:24 AM, David Blaikie wrote:

>> 
>>  std::string is really slow in most operations (it does atomic operations and COW with common implementations,
> 
> Hmm, which implementations still use COW, I wonder? I think there's
> something in C++0x that makes it impossible to implement std::string
> as COW.

All GCC's still do this AFAIK, which covers every popular free unix system that I'm aware of and the Mac.

-Chris



More information about the llvm-dev mailing list