• 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: Parsing Large Text Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parsing Large Text Files


  • Subject: Re: Parsing Large Text Files
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 2 May 2008 00:44:58 -0400

On Fri, May 2, 2008 at 12:37 AM, Bruce Robertson <email@hidden> wrote:
>  Mark's perl script is way fast, here is what I was attempting in applecript.
>  Performance was about 1MB/minute.

There are probably lots of ways to speed up your AS, but it's not
likely to get anywhere near as fast as the Perl, simply because this
is exactly the sort of work that Perl has spent the last 20 years
being optimized for.  Even the other scripting languages in Perl's
category probably can't keep up in a straight up regex text-munging
task like this, although they'll get closer than AS (Ruby, known to be
dog-slow by Perl standards, takes about 3x as long.  In Python I'd
apparently have to write my own generator to get the "read whole
protein at once" logic, and it wasn't worth it to me just for a speed
test.)

--
Mark J. Reed <email@hidden>
 _______________________________________________
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

References: 
 >Re: Parsing Large Text Files (From: "Mark J. Reed" <email@hidden>)
 >Re: Parsing Large Text Files (From: Bruce Robertson <email@hidden>)

  • Prev by Date: Re: Parsing Large Text Files
  • Next by Date: Re: Sending an application to the Dock?
  • Previous by thread: Re: Parsing Large Text Files
  • Next by thread: Re: Parsing Large Text Files
  • Index(es):
    • Date
    • Thread