http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59048

--- Comment #5 from Luca Stoppa <luca.stoppa at bbh dot com> ---
Thanks a lot,
so if memcmp() is called, how can the difference in performance be explained?
In short:

std::string s="something";

if (s == "something") { ... }

and

if (0 == strcmp(s.c_str(),"something")) { ... }
? Probably I'm doing something wrong, or my testcase is invalid?

Reply via email to