21 Mar 2013 06:25 AM |
|
Why is the new plot function so slow?
In a newly started IDLDE session:
IDL> print, !version
{ x86_64 Win32 Windows Microsoft Windows 8.2.2 Jan 23 2013 64 64}
IDL> x = DINDGEN(100) & y = x^2
IDL> tic & p = PLOT(x,y, SYMBOL='+') & toc
% Time elapsed: 799.92300 seconds.
IDL> tic & p = PLOT(x,y, SYMBOL='+') & toc
% Time elapsed: 12.388000 seconds.
IDL> tic & p = PLOT(x,y, SYMBOL='+') & toc
% Time elapsed: 10.079000 seconds.
|
|
|
|
Deleted User New Member
Posts:  
22 Mar 2013 11:50 AM |
|
Hi Braures,
Well, only when you invoke for the first time any new graphic function. This has to do with the fact that many object initializations has to be done. But this only happens once in the IDL session, after that, any new graphics function, specially in IDL 8.2.2, will be as fast as direct graphics.
Cheers,
Fernando
|
|
|
|
Deleted User New Member
Posts:  
08 Apr 2013 09:21 AM |
|
Doesn't this beg the question, though, of why these initialization routines are not run at IDL start-up? Or, at the very least, why aren't the initialization routines supplies as complied modules (ala ENVI) so that initialization happens much faster?
|
|
|
|
Deleted User New Member
Posts:21  
10 Apr 2013 11:40 AM |
|
Hi Theo,
The speed for your plots seems incredibly slow. When I do the same code, it takes about 3 seconds for the first plot, and then 0.5 seconds for subsequent plots. Do you have your IDL path set to a huge number of directories, or a lot of network directories?
-Chris
ExelisVIS
|
|
|
|
Deleted User New Member
Posts:  
17 Apr 2013 08:55 AM |
|
I'm seeing the same as Chris. It takes about 8 seconds on my box for the first plot but only .3 seconds for each subsequent plot. I only have in my !path.
Unlike Dr. Fanning, I'd prefer not to have the graphics system initialized automatically by IDL. But if you prefer that sort of thing you can add a call to "IRESOLVE" to any startup script you have. Or you can take advantage of the new "Macros" menu option in IDL 8.2 to run the command on-demand.
|
|
|
|
Deleted User New Member
Posts:  
18 Apr 2013 06:38 AM |
|
Wow! Yes, I like that. It takes about 6.2 seconds to resolve IRESOLVE, and I don't really notice it in my IDL startup. Then, the first plot appears in about 0.75 seconds. That is certainly acceptable speed. Great job speeding these routines up!
|
|
|
|