Re: I need the fastest routine



Clément Doss wrote:
Hi,


Unfortunately it's not fast enough. I need more speed. I just wanted to be sure this routine is ok, or if there's some tricks to make it faster. If you guys think is a waste of time trying to improve on this routine, then I'll try to optimize other parts of the project.

I appreciate very much your help.

Clément



This may sound dumb and I have not code this but why not do a quick sort and pick the first and last elements of the array?
.



Relevant Pages

  • Re: Why do some many posters here detail the minutiae of their lives
    ... > My parents do the same thing. ... Who else goes through this routine every ... That would drive me nuts. ... I can't be bothered to waste that much time on ...
    (alt.support.diabetes)
  • I need the fastest routine
    ... I'm a just embarrassed to post such a silly question and code. ... i:=high(aArray); ... If you guys think is a waste of time trying to improve on this routine, then I'll try to optimize other parts of the project. ...
    (borland.public.delphi.language.basm)
  • Re: The Promise of Forth
    ... and maybe find something better or possibly waste the ... thinking time. ... there is no reason that a language for doing routine things ...
    (comp.lang.forth)
  • Speed versus memory
    ... My initial impulse was to use vector processes everywhere. ... an absurd amount of memory. ... Such a routine only has two input arrays ... and one output array but goes through ten intermediate arrays all of ...
    (comp.lang.fortran)
  • Re: CVF compiler question, program giving inconsistent results
    ... Run time error checking for "Array and string bounds" is turned on. ... There is no Monte Carlo stuff in this code. ... routine in a support library that generates a "random" ... Right after the LOGICAL INITS declaration there is ...
    (comp.lang.fortran)