Avoid std::string allocations in HasSameNameAndSignature.

Creating a signature requires a std::string that's only used for the purpose of
a comparison. Avoid the std::string by comparing the elements of the method's
proto_ids.

Change-Id: I4394df2ac20bb5896936954f68937fad7e9f7e91
1 file changed