Subject: Re: speeding up microtime
To: None <port-i386@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: port-i386
Date: 08/01/2002 17:30:44
On Thu, Aug 01, 2002 at 03:19:41PM +0100, David Laight wrote:
> I've just down some performance measurements on (another)
> rewrite of the i386 microtime.
> 
> This cut the execution time for gettimeofday() call from
> about 6.3us to 4.1us by removing 2 of the 4 'inb' instructions
> from the usual code path.
> I expect the 'standard' code takes 5us since I'd already made
> other changes to the same bit of code.

It was 5.3us

I've just reworked it again to avoid reading the status from
the interrupt controller.  Test program gives 2.85us
unfortunately it doesn't quite work :-( and I have to go out.

	David

-- 
David Laight: david@l8s.co.uk