DelArray for large Arrays takes a long time

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
kdtrog
Junior Coder
Posts: 43
Joined: Wed Mar 28, 2007 9:36 am

DelArray for large Arrays takes a long time

Post by kdtrog » Fri Mar 08, 2013 10:22 am

Using DelArray for an Array with 1000 Elements needs about 30 seconds to complete.
Is this a normal behavior?

I need the function because I am also doing Arraysort after reusing an array.

If the reused array has a lower number of members ArraySort is returning wrong results.

A possible solution could be telling ArraySort how many elements to use for sorting.

kdtrog
Junior Coder
Posts: 43
Joined: Wed Mar 28, 2007 9:36 am

Post by kdtrog » Fri Mar 08, 2013 3:12 pm

Well, problem isn't solved but I found a circumvention for my own case.

Because I am filling (refilling) the array from a file I inserted an old hint from this forum to sort the file before reading.

Code: Select all

Let>RP_WAIT=1
Let>RP_WINDOWMODE=0
Run>cmd.exe /c sort test.txt /O testsort.txt
Works fast and has no impact

kdt

User avatar
jpuziano
Automation Wizard
Posts: 1085
Joined: Sat Oct 30, 2004 12:00 am

Post by jpuziano » Sat Mar 09, 2013 12:40 am

kdtrog wrote:Works fast and has no impact
Speed is good. :D

5 points to you for taking the time to share that for the benefit of all readers of the forums.

Thanks and take care
jpuziano

Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post - :-)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts