Looks like a very recent thread (only 7 years old, nothing compared to the cosmos)
Mckenzie and Axter, you guys were using systems with different system configuration. That is probably the explanation.
Printable View
Looks like a very recent thread (only 7 years old, nothing compared to the cosmos)
Mckenzie and Axter, you guys were using systems with different system configuration. That is probably the explanation.
I had tested it in several different systems, and they all gave similar results.
However, this thread is out dated, and more than likely does not hold true for the current std::string implementation that comes with current version of VC++.
If you are still curious (I know I would be), here are the results from VS2010 (running on Win7-64, if that matters):
CString here is from ATL, not MFC.Quote:
CString = 1623
std::string = 624
I haven’t looked at the code close enough yet, but just wanted to say that if you know implementation details of each of these classes, you could come up with the test that favors any one of them. IIRC, both Intel and AMD used that technique in the past.