[llvm-commits] [llvm] r52700 - /llvm/trunk/lib/VMCore/Constants.cpp

Chris Lattner clattner at apple.com
Tue Jun 24 22:27:13 PDT 2008


On Jun 24, 2008, at 10:09 PM, Owen Anderson wrote:

> No, it's significantly slower because resize() has to zero the  
> elements.

Also, what happens if you add a new method where you pass in a  
SmallStringImpl and the method fills it in.  This would avoid the heap  
allocation in common cases.

-Chris




More information about the llvm-commits mailing list