01-08-2008 01:35 PM - edited 01-08-2008 01:36 PM
01-08-2008 01:56 PM
01-08-2008 01:59 PM - edited 01-08-2008 02:02 PM
01-08-2008 02:05 PM
01-08-2008 02:13 PM
01-08-2008 02:15 PM
01-08-2008 02:45 PM
01-08-2008 02:59 PM
01-08-2008 03:03 PM
Couple of thoughts...
When I last analyzed the time involved in building an array (LV 5.1?), I can to the conclusion that LV started out with about 1K by default. As long as the buffer stayed below 1K, I did not see delays trying to build. If I continued to build I saw another hit at 2K, 4K, etc. So.... I think all of your work is just duplicating what the build array in a loop does.
Another approach (remember this is coming from Ben, Mr AE) is just use multiple queues. One for the GUI, one for logging, one for the analysis. The GUI and Logging queues you keep reading as normal. THe analysis queue just gets read once at analysis time.
Another thought...
How about using the in-place operations. They let you work exclusively in-place.
Yet another thought....
How about pre-allocating 5X what you need? THen just take the sub-set when it comes time to read.
Final idea:
Queues will often out perform AE since they can work in-place.
Ben
01-08-2008 03:40 PM