Skip to content

Commit

Permalink
Store an *Addr rather than a net.Addr in conn
Browse files Browse the repository at this point in the history
Calling its String() method should be faster.
  • Loading branch information
fiam committed Oct 29, 2013
1 parent a3c3260 commit 05da103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memcache/memcache.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ type Item struct {
// conn is a connection to a server.
type conn struct {
nc net.Conn
addr net.Addr
addr *Addr
c *Client
}

Expand Down

0 comments on commit 05da103

Please sign in to comment.