You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code for
var a, b string
if a == b ...
calls runtime.cmpstring. If a and b are different lengths, equality could be tested
without even calling the function, or at least by calling a specialized equality tester.
The cmpstring function scans the strings, which is usually unnecessary.