summaryrefslogtreecommitdiff
path: root/sys/src/cmd/python/Tools/scripts/fixheader.py
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-07-27 04:33:46 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-07-27 04:33:46 +0200
commitff494b954f950a3b060b9770212321e7576dca49 (patch)
treed1b98333a12dad622dd0fd01bd42d3dff03b460f /sys/src/cmd/python/Tools/scripts/fixheader.py
parent23f78400561e0172a55e1fad8172a848d9cafab6 (diff)
devmnt: use c->iounit instead of msize-IOHDRSZ to chunk reads and writes, reduce memory overhead for Mntrpc, mntalloc lock
use the actual iounit returned from Ropen/Rcreate to chunk reads and writes instead of c->mux->msize-IOHDRSZ. dont preallocate the rpc buffers to msize, most 9p requests are rather small (except Twrite of course). so we allocate the buffer on demand in mountio() with some rounding to avoid frequent reallocations. avoid malloc()/free() while holding mntalloc lock.
Diffstat (limited to 'sys/src/cmd/python/Tools/scripts/fixheader.py')
0 files changed, 0 insertions, 0 deletions