News for hackers. Stuff that matters.
Re:Performance Improvement with the StringBuilder for C++ by 10098 on Friday September 06, 2013 @11:16AM (#6340835)
This is reinventing the wheel. There are string streams fro that.
Re:Performance Improvement with the StringBuilder for C++ by eropple on Friday September 06, 2013 @12:39PM (#6341294)
Stringstream is really slow. It's great for a lot of stuff, but performance isn't one of them.
Re:Performance Improvement with the StringBuilder for C++ by jonhohle on Friday September 06, 2013 @12:53PM (#6341358)
Except, as pointed out below, it's significantly faster than this implementation.
Re:Performance Improvement with the StringBuilder for C++ by eropple on Friday September 06, 2013 @01:58PM (#6341717)
Huh, so it is. That's really surprising to me, but I guess those standard library folks are smart fellas. =)
Re:Performance Improvement with the StringBuilder for C++ by 10098 on Friday September 06, 2013 @02:14PM (#6341797)
Yeah, never underestimate the library authors. There were a couple of times I thought I had found a bug in a standard library implementation only to be pointed at the language standard and told that it's supposed to work that way :)