Re: I need the fastest routine
- From: "John Herbster" <herb-sci1_AT_sbcglobal.net>
- Date: Sat, 5 Jul 2008 11:53:19 -0500
"Clément Doss" <cdoss@xxxxxxxxxx> wrote
I need the fastest routine.
I doubt it! Usually when programmers are looking for
the fastest execution of a small part of their program,
their are looking in the wrong place to speed up the
overall execution.
If you were to explain about the larger problem, we
would be better able to help you.
I need to find the max and min integer from an array.
(1) How big are the arrays?
(2) How do the arrays get filled?
(3) How often do you need to fetch the extremes?
(4) How often do the arrays get changed?
(5) Why don't you determine the min and max
when the arrays are filled?
(6) Why don't you keep the arrays sorted?
(7) Why don't you link the elements in order?
(8) And a dozen more questions.
But mainly, we could help you better if you
explained more about the larger problem.
Rgds, JohnH
.
- Follow-Ups:
- Re: I need the fastest routine
- From: John Herbster
- Re: I need the fastest routine
- From: Clément Doss
- Re: I need the fastest routine
- From: Q Correll
- Re: I need the fastest routine
- References:
- I need the fastest routine
- From: Clément Doss
- I need the fastest routine
- Prev by Date: Re: I need the fastest routine
- Next by Date: Re: I need the fastest routine
- Previous by thread: Re: I need the fastest routine
- Next by thread: Re: I need the fastest routine
- Index(es):
Relevant Pages
|