Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
I suspect the slowest part of that is rendering the long file list in a field. If you don't need to display the list use a variable instead. If it's still too slow we can investigate further.
Richard Gaskin LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
on mouseUp
get the ticks --returned by your handler
divide it by 60
convert it to date
end mouseUp
"Convert" will not work directly on the ticks. We are changing those to the "seconds" You can convert also to "dateItems" which might give you even more information.
"Convert" will not work directly on the ticks. We are changing those to the "seconds" You can convert also to "dateItems" which might give you even more information.
Craig
thank you very much, it works great
It seems so simple.
Time for 119 files:
- with shell: 34 secondes
- with convert date: 0.2 secondes.
Last edited by Krynn on Tue Nov 09, 2021 12:45 am, edited 2 times in total.
FourthWorld wrote: Mon Nov 08, 2021 9:12 pm
I suspect the slowest part of that is rendering the long file list in a field. If you don't need to display the list use a variable instead. If it's still too slow we can investigate further.
I have about 1000 files.
I already store in a variable.
The problem was the console that displays 1000x is about 1 second per file. that's what slows it down.
but thanks for your feedback
FourthWorld wrote: Mon Nov 08, 2021 9:12 pm
I suspect the slowest part of that is rendering the long file list in a field. If you don't need to display the list use a variable instead. If it's still too slow we can investigate further.
I have about 1000 files.
I already store in a variable.
The problem was the console that displays 1000x is about 1 second per file. that's what slows it down.
but thanks for your feedback
Happy to help. Thanks for confirming that the display rendering was the bottleneck.
Richard Gaskin LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn