comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: fastest way to find the first non-zero value in an array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: fastest way to find the first non-zero value in an array [message #59673 is a reply to message #59672] Tue, 08 April 2008 06:34 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Vince Hradil writes:

> Wow - I'd be interested in knowing how slow 'where' is. Are we
> talking the difference between 0.01 seconds and 0.05 seconds? Or even
> the difference between 1 and 5 seconds? Time is money, but at what
> point does our 'need for speed' end?

I've gotten to the point where anything that takes less time
than it takes to go get a cup of coffee is fast enough. I
used to think fast, elegant programs were required. But
when you are writing one-offs day after day, why bother?
With Starbucks just across the street, I can afford to be
a little loose with a FOR loop.

Cheers,

David

P.S. That said, I just spent the entire weekend re-working
a program I inherited from someone else. It is generally a
good idea to write a program in such a way that someone else
can get it to work in less time than it takes to write the
darn thing from scratch. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: array concatenation in 2-D
Next Topic: Re: Avoiding FOR loops (version googleplex.infinity)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 05:35:23 PDT 2025

Total time taken to generate the page: 1.27374 seconds