Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Nov 2006 05:57:15 +0000 (UTC)
From:      Bruce Evans <bde@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/net route.c
Message-ID:  <200611230557.kAN5vFmU093105@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611230557.kAN5vFmU093105>