DragonFly BSD
DragonFly submit List (threaded) for 2004-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [PATCH] Suggested FreeBSD merge


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Mon, 15 Nov 2004 00:18:16 +0100

On Fri, Nov 12, 2004 at 01:39:13PM +0800, Xin LI wrote:
> I think you would interest the patch attached.  This brings FreeBSD
> rev. 1.10 of htonl.S and ntohl.S's changes by David O'Brien, which
> is positive for application performance on 80486 and above.

I should add that this specific change is most likely not of interest.
In DragonFly, htonl is inlined by default. Depending on the compiler
settings, the generic i386 version is used or the faster i486 code
(-march=i486 and above). That the libc version is only used as fall-back
if a program doesn't use the header files.

The overhead of calling the assembler versions, esp. in the PIC case is
most likely greater than the time saving by using i486 code.

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]