• 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: minimum function?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: minimum function?


  • Subject: Re: minimum function?
  • From: Martin Orpen <email@hidden>
  • Date: Wed, 06 Apr 2005 21:16:10 +0100

on 6/4/05 19:19, has at email@hidden wrote:

> I shouldn't boast too much if I were you: your script uses a woefully
> inefficient and wasteful algorithm that'd make even a junior-high CS student
> cringe.

Well, if I knew it was an exam piece I would have spent more than 3 minutes
writing it. It wasn't posted for its efficiency or its good looks, it was
posted because it was about twenty times faster than any of the scripts that
were posted prior to it in that thread.

I did try leaching a Python function later:

    do shell script "python -c 'y=min([" & x & "]); print y'"

But that was slower than using sort (though faster than the previous
scripts.

--
Martin Orpen


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: minimum function?
      • From: jj <email@hidden>
References: 
 >Re: minimum function? (From: has <email@hidden>)

  • Prev by Date: Re: minimum function?
  • Next by Date: Re: minimum function? (Modified by Simon Forster)
  • Previous by thread: Re: minimum function?
  • Next by thread: Re: minimum function?
  • Index(es):
    • Date
    • Thread