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

Home » Public Forums » archive » Re: Doing Nothing Takes Longer Than Doing... Nothing?
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: Doing Nothing Takes Longer Than Doing... Nothing? [message #38001 is a reply to message #37990] Wed, 11 February 2004 05:51 Go to previous message
Ken Knapp is currently offline  Ken Knapp
Messages: 14
Registered: April 2003
Junior Member
Not sure if this is much help, but it was fun to compile and run. Here's
the output from:
IDL Version 6.0, Microsoft Windows (Win32 x86 m32). (c) 2003, Research
Systems, Inc.

Average1 = 3.3160019e-006 s
Average2 = 3.1799984e-006 s

IDL Code Profiler reports:
Module Type Count Only(s) Avg.(s) Time(s) Avg.(s)
TESTROUTINE1 (U) 250000 0.417654 0.000002 0.417654 0.000002
TESTROUTINE2 (U) 250000 0.416161 0.000002 0.416161 0.000002

Tim Robishaw wrote:
> pathology: no matter which modules I race and no matter which order I
> race them in (e.g., TESTROUTINE1 vs. TESTROUTINE2 or TESTROUTINE2 vs.
> TESTROUTINE1 or *even* TESTROUTINE1 vs. TESTROUTINE1) I find that the
> module inside the first loop is always FASTER. I threw in a 3rd
> routine that does NOTHING as well... same deal. I have a feeling this
> may have something to do with the fundamentals of computer science, or
> magic. Any help here would be appreciated! Best -Tim.
Looks like they're the same to me.

Have fun with your puzzle.
-Ken

--
***** to reply remove the _REMOVE_ *****

Ken Knapp Ken.Knapp@_REMOVE_noaa.gov
Remote Sensing and Applications Division
National Climatic Data Center
151 Patton Ave
Asheville, NC 28806
828-271-4339 (voice) 828-271-4328 (fax)
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Label Region trouble
Next Topic: dissapointing fftw

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

Current Time: Fri Oct 10 02:03:21 PDT 2025

Total time taken to generate the page: 0.80281 seconds