08-26-2011 04:13 PM - edited 08-26-2011 04:15 PM
@majoris wrote:
It's only marginally faster without the counter call.
With default settings the "draw line time" goes from 2ms to 27us when I remove the inner sequence structure and leave only "replace array subset" in the innermost loop.
27us for ~227 replacements means 120ns for "replace array subset", including all the loop overhead.
(... and this is on a very slow old Athlon XP computer ;))
08-26-2011 04:22 PM
Also make sure to enlarge the indicator for "draw line time", there might be some e-format beyond the right edge that might be of interest. 😄
(better yet, change the display to SI format)
08-26-2011 04:24 PM
The units of all the time indicators are seconds. If, before modification, you were already getting .002 seconds on the draw line time indicator then I am very jealous. As you can see from the image I posted before, it takes me 200 ms to run that loop on over 200 elements.
I actually have an outrageously beefy computer. I'm gonna try rebooting and see if that makes any difference. If it does, I'm gonna punch my nearest coworker (which is fine, because everyone has left for the weekend anyways). If it doesn't, I'm gonna cry a little.
08-26-2011 04:27 PM
@majoris wrote:
The units of all the time indicators are seconds. If, before modification, you were already getting .002 seconds on the draw line time indicator then I am very jealous.
I'll refrain from posting the times I get on my computer, suffice to say I would not be quoting in seconds, or even milliseconds.
08-26-2011 04:33 PM
Rebooting my computer and making no changes it now works . Also, Labview crashed when I closed it prior to rebooting. *largest sigh ever*
I'm happy I'm not crazy, but at the same time sad that I didn't just reboot earlier.
Thanks for your help.