Applescript under load
Applescript under load
- Subject: Applescript under load
- From: email@hidden
- Date: Fri, 31 May 2002 23:52:52 EDT
On the WebSTAR-Dev list, CJ Holmes has stated that the AppleEvent manager (under OSX, and I assume 9.x as well) has a tendency to choke under loads over 100 events per second. This raises a few questions for me:
1) Is this true?
2) What constitutes an AppleEvent? I assume any tell block, osax call, or "do shell script" invocation involves an AppleEvent, but a simple "set x to 3" does not.
3) If #1 is true, what are the plans to make the AppleEvent manager substantially more robust (ie. able to handle 1000 events per second without breathing hard, perhaps choking at 10,000 or more)?
My concern is this: if each read/write of a text file constitutes a separate AppleEvent, as well as the ACGI call and return, and I have an AppleScript CGI which involves 4 AppleEvents, then there is no way I will *ever* be able to handle more than 25 hits per second to even a very simple Applescript ACGI. If true, this basically means that I should abandon Applescript as a CGI language except for simple prototyping, housekeeping, legacy, and in-house stuff. I've already found my carthandle shopping cart choking under load (MacOS 9.1, G3 350MHz), with some calls taking 6 seconds to execute.
Thoughts?
Jeff Baumann
email@hidden
www.linkedresources.com
cc please, on digest
_______________________________________________
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.