4 ms·
1. Find / replace, I'm sure the API is simple enough and performance gains are worth the effort. 3. You don't need to replace anything, ever - only if you feel
by Cthulhu_ 12y ago
1. Find / replace, I'm sure the API is simple enough and performance gains are worth the effort.
3. You don't need to replace anything, ever - only if you feel like your string performance is lacking, and that particular new library satisfies your needs (in terms of effort vs performance gains). I don't get why people believe that whenever something new comes out they have to switch over, and as a result are terrified of innovation.
4. I disagree with the "should've been built in" statement; the default std::string implementation is good enough for most (like any std:: thing). Besides, std:string was designed 25+ years ago, over a dozen CPU generations ago; the demands of today are must different.
- raverbashing 12y agoI agree with most points, but "std:string was designed 25+ years ago, over a dozen CPU generations ago; the demands of today are must different." Sure, but you don't need to break the API for that You can replace the allocator in a C program without changing malloc/free to something else, this might have been a design goal. This way you can go back and forth to it, run your tests again, compare performance again, etc