MACSCRPT Archives

February 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Christian Huldt <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 5 Feb 2009 20:50:27 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
Any comments on
--
set a to "b"
set b to {}
set i to 0
set t0 to do shell script "perl -e 'print time'"
repeat while i < 10000
    set i to i + 1
    set a to a & "a"
end repeat
set b to text items of a
set t1 to do shell script "perl -e 'print time'"

set i to 0
set t2 to do shell script "perl -e 'print time'"
repeat while i < 10000
    set i to i + 1
    set end of b to "a"
end repeat
set t3 to do shell script "perl -e 'print time'"

{t1 - t0, t3 - t2}
-- 

(well, other than the increasingly peculiar semi-circular reasoning of something like do shell script "perl -e 'print time'")

Christian

ATOM RSS1 RSS2