Re: python
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>) |