• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: read a file - Lion vrs Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: read a file - Lion vrs Tiger


  • Subject: Re: read a file - Lion vrs Tiger
  • From: Nigel Garvey <email@hidden>
  • Date: Thu, 27 Sep 2012 09:59:29 +0100

Jim Brandt wrote on Wed, 26 Sep 2012 12:26:51 -0500:

>I have a question about reading files in Lion vrs Tiger.
>
>I have a script that is running very sluggishly under Lion on a Mac
Mini.
>This same script ran much faster under Tiger, so I've been trying to
figure
>out why.
>
>The script is very long and involved so I'm breaking the testing up into
>pieces. The first thing it does is read several HTML files and strip out
>rows of a table from each file. Each HTML page is between 6 and 7 K in
size.

A likely suspect is the fact that since Leopard, all text within scripts
has been Unicode text, which takes massively longer to process than did
the old 'string' class. Reading a 76K text file and simply 'get'-ing the
individual characters in a repeat loop takes 0.532 seconds in Tiger on
my G5. Doing the same with an identical file in Snow Leopard on my much
faster MacBook Pro takes 605.148 seconds. Coercing the text to Unicode
text before doing the repeat on the G5 increases the time to 802.833
seconds.

NG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Requesting assistance with rtfd and attachments
  • Next by Date: Re: Requesting assistance with rtfd and attachments
  • Previous by thread: Re: read a file - Lion vrs Tiger
  • Next by thread: Requesting assistance with rtfd and attachments
  • Index(es):
    • Date
    • Thread