go/src
Cristian Staretu 8aea9a00a8 syscall: NetlinkRIB, avoid allocation in loop
NetlinkRIB is currently allocating a page sized slice of bytes in a
for loop and it's also calling Getpagesize() in the same for loop.

This CL changes NetlinkRIB to preallocate the page sized slice of
bytes before reaching the for loop. This reduces memory allocations
and lowers the number of calls to Getpagesize() to 1 per NetlinkRIB
call.

This CL reduces the allocated memory from 141.5 MB down to 52 MB in
a test.

LGTM=crawshaw, dave
R=dave, dsymonds, crawshaw
CC=bradfitz, dsymonds, golang-codereviews
https://golang.org/cl/110920043
2014-07-09 18:50:38 +10:00
..
cmd cmd/go: fix build -o panic when import path pattern matches 0 pkgs 2014-07-09 13:17:27 +10:00
lib9
libbio
liblink build: annotations and modifications for c2go 2014-07-02 15:41:29 -04:00
pkg syscall: NetlinkRIB, avoid allocation in loop 2014-07-09 18:50:38 +10:00
Make.dist
all.bash
all.bat
all.rc
clean.bash
clean.bat
clean.rc
make.bash
make.bat
make.rc
nacltest.bash nacltest.bash, misc/nacl/README: update NaCl docs. 2014-06-10 20:20:49 -04:00
race.bash race.bash: support freebsd 2014-06-24 15:47:22 -07:00
race.bat
run.bash run.bash: disable tests that don't (yet) like running off the host 2014-07-08 18:41:07 -04:00
run.bat
run.rc build: don't build goplay in run.rc. 2014-06-01 19:20:46 -04:00
sudo.bash