set end of l to iseems faster than copy i to end of l:
on f()
set l to {}
repeat with i from 1 to 100000
set end of l to i
end repeat
l
end f
set t to time of (current date)
set l to f()
(time of (current date)) - t
You can also use a script object:
on f()
script s
property l : {}
end script
repeat with i from 1 to 100000
copy i to end of l of s
end repeat
l of s
end f
set t to time of (current date)
set l to f()
(time of (current date)) - t
100000 , , , , script scpt:
" " "Untitled.scpt".
set l to f() , l , set l to {} script .applescript.