[PATCH]: fdalloc optimization

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Aug 22 08:38:47 GMT 2005


In message <20050822083320.GA32668 at stud.fit.vutbr.cz>, Divacky Roman writes:

>    N           Min           Max        Median           Avg        Stddev
>x 100         39957        959570         41444      87169.69     201011.84
>+ 100         37786        962107         38766      66353.09     158258.74
>No difference proven at 95.0% confidence
>
>anyway - commenting out duplicate code MUST speed it up, maybe insignificantly
>but still ;)

It used to be that life was that simple, but with three levels of caches and
deep pipelines it isn't anymore.

But taken from the other side: you can also read this as your patch does no
damage to performance, so if code clarity is improved (havn't looked at your
patch myself) then that would be another good reason.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-current mailing list