svn commit: r279351 - head/sys/dev/sfxge
Alexey Dokuchaev
danfe at FreeBSD.org
Fri Feb 27 08:46:25 UTC 2015
On Fri, Feb 27, 2015 at 07:39:10AM +0000, Andrew Rybchenko wrote:
> New Revision: 279351
> URL: https://svnweb.freebsd.org/changeset/base/279351
>
> Log:
> sfxge: expect required init_state on data path and in periodic calls
>
> With the patch applied the number of instruction events is 1% less and
> number of mispredicted branch events is 5% less under multistream TCP
> traffic load close to line rate.
Yuck. This brings more Linux' stink to our code. Why compiler can't do
this itself? From what I see, __predict_false was added to != checks, and
__predict_true for == ones. Looks like a pattern to me...
./danfe
More information about the svn-src-all
mailing list