From: Benjamin LaHaise <[EMAIL PROTECTED]> Date: Tue, 7 Feb 2006 07:04:05 -0800
> Instead of doing a memset then initialization of the fields of the scm > structure, just initialize all the members explicitly. Prevent reloading > of current on x86 and x86-64 by storing the value in a local variable for > subsequent dereferences. This is worth a ~7KB/s increase in af_unix > bandwidth. Note that we avoid the issues surrounding potentially > uninitialized members of the ucred structure by constructing a struct > ucred instead of assigning the members individually, which forces the > compiler to zero any padding. > > Signed-off-by: Benjamin LaHaise <[EMAIL PROTECTED]> Also applied, thanks a lot Ben. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html