Mail Archives: djgpp-workers/2003/04/22/10:18:42
Hello.
Eli Zaretskii wrote:
>
> > Date: Mon, 21 Apr 2003 19:50:25 +0100
> > From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
[snip]
> > > Btw, do we have any info on how long does it take for 5F46h to do its
> > > job on a typical system?
> >
> > Not very long! I add a one million iteration for loop executing
> > get_shares_internal (which calls Int 21h/5F46h) to the test program for
> > profiling. On my Athlon 850MHz running Windows '98 SE it sometimes took:
[snip]
> I'm not sure the time is linear with the number of iterations: Windows
> could do some kind of caching to hold the results of this lookup; if
> it does, the first call will account for most of the elapsed time.
> Can you see if the times are indeed linear with the number of
> iterations?
Well, I initially made the test do 1,000 iterations, but that took 0 seconds
according to the profile. So I made it do 1,000,000 iterations instead, to get
some significant results. I can't see how I can measure the time for the first
call, other than by running on a much slower computer, which I don't have.
It does seem to scale approximately linearly, but that's because it's spending
most (> 95%) of its time calling __dpmi_int.
I don't think the call takes long enough, to worry about it.
When I post the next version of the patch, perhaps someone with a slow
computer could try profiling it?
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -