Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Dec 1997 19:07:04 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        current@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/kern vfs_aio.c 
Message-ID:  <2923.881086024@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 02 Dec 1997 09:06:20 PST." <199712021706.JAA28517@kithrup.com> 

next in thread | previous in thread | raw e-mail | index | archive | help

>>And yes, the reason is performance.
>
>Then you should back the changes out IMMEDIATELY, as
>
>	*retval = 10;
>
>is exactly the same speed as:
>
>	p->p_retval[0] = 10;

BZZZTT!   Wrong answer.

We save the time it takes to push the &retval on the stack on ALL syscalls.

--
Poul-Henning Kamp             FreeBSD coreteam member
phk@FreeBSD.ORG               "Real hackers run -current on their laptop."



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