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
Is the separate parseHost done for performance optimization reasons, or was this just an oversight? If the former, maybe the code would benefit from a comment explaining this (and referencing the other method).
The text was updated successfully, but these errors were encountered:
It seems like the code for parsing hosts in
net/url
- the parseHost method:https://github.com/golang/go/blob/master/src/net/url/url.go#L540
could invoke the
net/SplitHostPort
method instead:https://github.com/golang/go/blob/master/src/net/ipsock.go#L109
Is the separate
parseHost
done for performance optimization reasons, or was this just an oversight? If the former, maybe the code would benefit from a comment explaining this (and referencing the other method).The text was updated successfully, but these errors were encountered: