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

Re: python


  • Subject: Re: python
  • From: Harald E Brandt <email@hidden>
  • Date: Sat, 17 Apr 2004 19:55:54 +0200

On 2004-04-09, at 19.40, Chris Espinosa wrote:

On Apr 8, 2004, at 2:48 PM, Emmanuel wrote:

set cmd to "print 'hello, world'"

chrono
repeat 100
do shell script "python -c " & quoted form of cmd
end
chrono
-- 10 seconds (G3/900MHz)

And your point is?

100 invocations of a subordinate shell and 100 initializations and invocations of Python will take time, no matter what 'cmd' is or how fast Python executes it.


I got interested, and tried Perl:
The exact same statement in Perl goes 5 times faster!!! ....*including* the 'do shell script' overhead!!
(do shell script "perl -e " & quoted form of cmd)

PS: ....and MY point is simply that I'll continue with Perl, rather than Python, for my uses...


____heb____________________
Harald E Brandt http://bragit.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >python (From: roy whelden <email@hidden>)
 >Re: python (From: Christopher Nebel <email@hidden>)
 >Re: python (From: Emmanuel <email@hidden>)
 >Re: python (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Convert long number to string
  • Next by Date: Using GUI Scripting to set window positions
  • Previous by thread: Re: python
  • Next by thread: FileMaker and Now Contact-- solved!
  • Index(es):
    • Date
    • Thread