I just created four same-named stacks and ran my suggested handler wrapped with timer commands. All four were deleted in 67 milliseconds. LC 10.0.0 DP 4.

put the milliseconds into tStart
repeat while "test" is in the mainstacks
   delete stack "test"
end repeat
answer the milliseconds - tStart

Ralph's idea to use filter is good too but slightly slower, at (a fairly insignificant) 79 milliseconds:

put the milliseconds into tStart
filter the mainstacks with "test*" into tStacks
repeat for each line l in tStacks
   delete stack l
end repeat
answer the milliseconds - tStart

On 4/5/23 10:15 AM, Bob Sneidar via use-livecode wrote:
Whoa! No I'm not! There's over 300 mainstacks just from Livecode!

Bob S


On Apr 5, 2023, at 08:07, Bob Sneidar via use-livecode 
<[email protected]> wrote:

Oooh Pro Tip #276 from Jacque. I'm gonna use that one.

Bob S

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

--
Jacqueline Landman Gay         |     [email protected]
HyperActive Software           |     http://www.hyperactivesw.com


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to