Re: Parsing Large Text Files
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