| commit | 067315c647a8c973147bb53fb7a3483e99aa863e | [log] [tgz] |
|---|---|---|
| author | Dave Cheney <dave@cheney.net> | Fri Oct 26 19:41:21 2012 +1100 |
| committer | Dave Cheney <dave@cheney.net> | Fri Oct 26 19:41:21 2012 +1100 |
| tree | 2a16091e9d5dad33765dc58c2a3e523e4dd7c389 | |
| parent | 542dd8b9fba40e03ccdf1fac0a805b5b23ea3b8c [diff] |
net: avoid allocation in setAddr setAddr was showing up in profiles due to string concatenation construction the os.File name field. netFD.sysfile's Name() is never used, except in dup() so I believe it is safe to avoid this allocation. R=mikioh.mikioh, rsc CC=golang-dev https://golang.org/cl/6742058