diff options
| author | Eric Dumazet <[email protected]> | 2017-09-23 19:39:12 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-09-26 03:35:11 +0000 |
| commit | 7c90584c66cc4b033a3b684b0e0950f79e7b7166 (patch) | |
| tree | 884ffbcadfd487468650145f79ab702716c4a7d4 /net/unix/af_unix.c | |
| parent | sch_netem: faster rb tree removal (diff) | |
| download | kernel-7c90584c66cc4b033a3b684b0e0950f79e7b7166.tar.gz kernel-7c90584c66cc4b033a3b684b0e0950f79e7b7166.zip | |
net: speed up skb_rbtree_purge()
As measured in my prior patch ("sch_netem: faster rb tree removal"),
rbtree_postorder_for_each_entry_safe() is nice looking but much slower
than using rb_next() directly, except when tree is small enough
to fit in CPU caches (then the cost is the same)
Also note that there is not even an increase of text size :
$ size net/core/skbuff.o.before net/core/skbuff.o
text data bss dec hex filename
40711 1298 0 42009 a419 net/core/skbuff.o.before
40711 1298 0 42009 a419 net/core/skbuff.o
From: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
