Re: if_var.h micro-optimization

2008-05-30 Thread Bruce M. Simpson
rihad wrote: Bruce M. Simpson wrote: It could save dirtying an L2 data cache line at the expense of taking a conditional branch, Whoa, why don't you take it easy on me :) I'm not that much into kernel (or hardware) programming. It's just that reading Ch. 3 of TCP/IP Illustrated Vol.2 by Rich

Re: if_var.h micro-optimization

2008-05-30 Thread rihad
Bruce M. Simpson wrote: rihad wrote: Not sure if this is a worthwhile optimization? FreeBSD 7.0 --- /usr/src/sys/net/if_var.h 2007-12-07 09:46:08.0 +0400 +++ if_var.h2008-05-30 18:10:25.0 +0500 @@ -282,7 +282,8 @@ if (m) {

Re: if_var.h micro-optimization

2008-05-30 Thread Bruce M. Simpson
rihad wrote: Not sure if this is a worthwhile optimization? FreeBSD 7.0 --- /usr/src/sys/net/if_var.h 2007-12-07 09:46:08.0 +0400 +++ if_var.h2008-05-30 18:10:25.0 +0500 @@ -282,7 +282,8 @@ if (m) {\ if