[LLVMdev] [cfe-dev] New libc++ LLVM Subproject

Christopher Jefferson chris at bubblescope.net
Wed May 12 08:03:02 PDT 2010


On 12 May 2010, at 15:52, Daniel Berlin wrote:

>> 
>> This was compiled with g++-4.-2 -O3 (without rvalue references, which would have no effect on sorting ints anyway).
> 
> Errr, that is a pretty old version at this point.
> Also this was before significant performance improvements were target
> at libstdc++ *and* g++.
> It seems a bit strange to compare something from today to something
> that is now 3 release versions old.

I believe this std::sort implementation is better, taking a few good ideas, especially with regards already most-sorted lists. Of course the libc++ could easily be lifted out and dropped into libstdc++ with very minor mangling-related changes without breaking anything.

The container changes are more fundamental, and in particular would (obviously) break the ABI, which libstdc++ has avoided for some time, even when there are known better implementation techniques (issues in std::string, and small object allocation, occur in particular).

Chris





More information about the llvm-dev mailing list