home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / idlpvwa / 626 next >
Encoding:
Text File  |  1993-01-21  |  1.6 KB  |  36 lines

  1. Newsgroups: comp.lang.idl-pvwave
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!nsisrv!stars.gsfc.nasa.gov!thompson
  3. From: thompson@stars.gsfc.nasa.gov (William Thompson, code 682.1, x2040)
  4. Subject: Re: IDL, PV-Wave, Matlab, Khoros
  5. Message-ID: <21JAN199311590839@stars.gsfc.nasa.gov>
  6. News-Software: VAX/VMS VNEWS 1.4-b1  
  7. Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
  8. Nntp-Posting-Host: stars.gsfc.nasa.gov
  9. Organization: NASA/GSFC-Laboratory for Astronomy and Solar Physics
  10. References: <19JAN199317494582@stars.gsfc.nasa.gov> <1jers7INN9bh@elroy.jpl.nasa.gov> <1993Jan19.175815.8722@iscnvx.lmsc.lockheed.com> <1jjo6jINN1tn@usenet.INS.CWRU.Edu>
  11. Date: Thu, 21 Jan 1993 15:59:00 GMT
  12. Lines: 22
  13.  
  14. In article <1jjo6jINN1tn@usenet.INS.CWRU.Edu>, at913@cleveland.Freenet.Edu (Mirko Vukovic) writes...
  15.  
  16.     (stuff deleted)
  17.  
  18. >Programs written in IDL can be 30-60 times slower than equivalent programs
  19. >written in FORTRAN, but if one uses extensive array manipulation facilities
  20. >execution improves tremendously (factors of 10).
  21.  
  22.     (rest deleted)
  23.  
  24. Actually our experience has been that, depending on the problem and how the IDL
  25. code is written, IDL routines are just about as fast as an equivalent FORTRAN
  26. routine.  The secret seems to be the use of loops.  If you can write your code
  27. without any DO loops--and a lot of times you can--then IDL's performance is
  28. just about the same as a FORTRAN routine.  If you need to use loops, then
  29. performance suffers greatly from the need to reinterpret the commands over and
  30. over again.
  31.  
  32. A lot of times I've seen less experienced IDL programs use loops when there
  33. were ways to avoid them--I've been guilty of it myself.
  34.  
  35. Bill Thompson
  36.