[Bug libstdc++/59048] operator== between std::string and const char* slower than strcmp

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 3 07:54:00 GMT 2015


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

Marc Glisse <glisse at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |---

--- Comment #15 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Ondrej Bilka from comment #13)
> Yes, this is duplicate of following.
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052

No it isn't. I made a comment related to that other PR, but IIRC the main point
here is that the function is not pulled out of the loop, which is independent
of how memcmp gets expanded.



More information about the Gcc-bugs mailing list