diff options
| author | Benjamin LaHaise <[email protected]> | 2006-03-21 05:29:05 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2006-03-21 05:29:05 +0000 |
| commit | e9df7d7f584666533b1bdfcf5c60a43d64689198 (patch) | |
| tree | 78faaa085edfb24784e40779864d41fd9ddeb168 /net/ipv4/tcp_input.c | |
| parent | [NET]: Uninline kfree_skb and allow NULL argument (diff) | |
| download | kernel-e9df7d7f584666533b1bdfcf5c60a43d64689198.tar.gz kernel-e9df7d7f584666533b1bdfcf5c60a43d64689198.zip | |
[AF_UNIX]: use shift instead of integer division
The patch below replaces a divide by 2 with a shift -- sk_sndbuf is an
integer, so gcc emits an idiv, which takes 10x longer than a shift by 1.
This improves af_unix bandwidth by ~6-10K/s. Also, tidy up the comment
to fit in 80 columns while we're at it.
Signed-off-by: Benjamin LaHaise <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions
