|
|
64 bit?
I think the 64-bit mania is getting a little bit out of hand. AppleScript is certainly such a lightweight application that I can't possibly see it benefiting from running as 64-bit. I ran a few tests of my own scripts, and didn't find any difference in runtime between the standard 32-bit versions and 64-bit. It's easy to run your own test: First, save the script as an application in Script Editor. Then in Terminal, change to the compiled AppleScript's "MacOS" directory. For example: % cd myscript.app/Contents/MacOS
A compiled AppleScript should have 3 architectures in the "applet" executable. You can verify this with the "file" command: % file appletapplet: Mach-O universal binary with 3 architectures applet (for architecture x86_64): Mach-O 64-bit executable x86_64 applet (for architecture i386): Mach-O executable i386 applet (for architecture ppc7400): Mach-O executable ppc Use the "lipo" command to extract individual executables of each architecture, and rename the existing executable to move it out of the way. % lipo applet -extract x86_64 -o applet.x86_64
Now, to test any architecture, use the "ln" command to make a symbolic link (alias) to that executable named applet. For example, to test the i386 architecture: % ln -sf applet.i386 applet
Try the different architectures and see if there's really any difference between i386 (32-bit) and x86_64 (64-bit). I couldn't find any. I suspect the speedup has more to do with running the script natively rather than under Rosetta. I didn't install Rosetta on my Snow Leopard partition, so when I went to run an old script, it popped up asking if I wanted to install it. I recompiled the script instead. So I can't test the ppc architecture. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|