Re: Minimum & Maximum

new topic     » goto parent     » topic index » view thread      » older message » newer message

jiri babor wrote:
> Ok, but one million only, after all it's 1.15 am. Good night. jiri
thankee :)
'nite
>                                       Mike's      Mine   Modified
> =================================================================
> 5,3                                    1.14       0.92       0.91
> {5,3,1},{-5,2,6}                       6.69       6.90       6.83
> {5,3,{4,5},1},{-5,2,{-7,7},6}         11.89      13.33      13.10
13.33 versus 13.10 may seem insignificant to some...
remember, this is a 233PII system...
.23 seconds over 1mil iterations on this system is
~55 clock ticks for that simple jmp in a short
if..endif statement... for a total of
~55MILLION saved clockticks.
.23seconds seems small... but this is a 233PII.
on a 486.66 it is almost a full second saved.
on a 486.25 that is over TWO SECONDS.
this is for only 1million iterations of a small sequence.
10million iterations gets you TWENTY SECONDS saved on a 486.25.
i know i'm sounding a trifle picky, but those are ticks
that could be used by windoze, it's slow enuff anyway,
and why write 'sloppy' code?
would you rather go thru a whole sequence to find sumfin,
or exit the loop once found?
the nice thing about getting out while the getting is
good, it costs you nothing in terms of readability,
maintainability, or safety, but gives potentially
large returns in speed.

and no, i'm not trying to beleager a point... :)
--Hawke'

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu