r21278: The main goal of this was to get rid of the NetInBuffer / set_InBuffer. But it
authorVolker Lendecke <vlendec@samba.org>
Sun, 11 Feb 2007 14:07:50 +0000 (14:07 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:17:53 +0000 (12:17 -0500)
commit452d51bc6fd41771b9c41ba6391664513d7cf2cd
tree396b88154d369326728a13276bb92754103fc234
parent8fd0ec58360a349826508fc361a943650fdd6694
r21278: The main goal of this was to get rid of the NetInBuffer / set_InBuffer. But it
turns out that this patch actually speeds up the async writes considerably.

I tested writing 100.000 times 65535 bytes with the allowed 10 ops in
parallel. Without this patch it took about 32 seconds on my dual-core 1.6GHz
laptop. With this patch it dropped to about 26 seconds. I can only explain it
by better cache locality, NewInBuffer allocates more than 128k, so we jump
around in memory more.

Jeremy, please check!

Volker
source/smbd/aio.c
source/smbd/process.c