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:
Simon Topliss <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 5 Feb 2009 21:05:39 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
Well, as you're talking of slow lists, I suggest you don't post your  
request here and try posting to [log in to unmask]


On 5 Feb 2009, at 19:50, Christian Huldt wrote:

> 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