Speed

Melitón Cardona Torres toncardona at mac.com
Wed May 18 15:08:48 EDT 2005


I have tried this in a field with 2352 lines (one word in each line):

on mouseUp
   method1
   method2
   method3
   method4
   method5
   method6
end mouseUp

on method1
   put the milliseconds into originMill
   repeat with x=1 to the number of lines of fld "dos"
     put line x of fld "dos" &cr after aList1
   end repeat
   put the milliseconds-originMill&&the number of lines of aList1 into 
msg
end method1

on method2
   put the milliseconds into originMill
   put fld "dos" into miVar
   repeat with x=1 to the number of lines of miVar
     put line x of miVar &cr after aList2
   end repeat
   put cr&the milliseconds-originMill&&the number of lines of aList2 
after msg
end method2

on method3
   put the milliseconds into originMill
   repeat for each line efe in fld "dos"
     put efe&cr after aList3
   end repeat
   put cr&the milliseconds-originMill&&the number of lines of aList3 
after msg
end method3

on method4
   put the milliseconds into originMill
   put fld "dos" into miVar
   repeat for each line efe in miVar
     put efe&cr after aList4
   end repeat
   put cr&the milliseconds-originMill&&the number of lines of aList4 
after msg
end method4

on method5
   put the milliseconds into originMill
   repeat with x=1 to the number of lines of fld "dos"
     get line x of fld "dos"
     put it&cr after aList5
   end repeat
   put cr&the milliseconds-originMill&&the number of lines of aList5 
after msg
end method5

on method6
   put the milliseconds into originMill
   put fld "dos" into miVar
   repeat with x=1 to the number of lines of miVar
     get line x of miVar
     put it&cr after aList6
   end repeat
   put cr&the milliseconds-originMill&&the number of lines of aList6 
after msg
end method6

Some results (not uniform):

7658 2352
1688 2352
10 2352
8 2352
7819 2352
1451 2352
***
7803 2352
1313 2352
11 2352
10 2352
4867 2352
1054 2352
***
8113 2352
1698 2352
12 2352
86 2352
7793 2352
1391 2352

and so on ...

Best regards,

Ton Cardona



More information about the Use-livecode mailing list