cvs commit: src/sys/net route.c
Bruce Evans
bde at FreeBSD.org
Wed Nov 22 21:57:16 PST 2006
bde 2006-11-23 05:57:15 UTC
FreeBSD src repository
Modified files:
sys/net route.c
Log:
Initialize a local variable in 2 places just before it is used, not always
at the start of rtalloc1(). This backs out part of revs 1.83 and 1.85.
Profiling on an i386 showed that that for sending tiny packets using
bge, -current takes 7 bzero()s where RELENG_4 takes only 1, and that
bzero()ing is now the dominant overhead (10-12%, up from 1%, but
profiling overestimated this a bit). This commit backs out 2 of the
6 extra bzero()s (1 in each of 2 calls per packet to rtalloc1()). They
were the largest ones by byte count (48 bytes each) but perhaps not
by time (small misaligned ones might take longer).
Revision Changes Path
1.118 +2 -1 src/sys/net/route.c
More information about the cvs-all
mailing list