Re: Script performance on Mac OS X
Re: Script performance on Mac OS X
- Subject: Re: Script performance on Mac OS X
- From: has <email@hidden>
- Date: Thu, 11 Jul 2002 18:41:22 +0100
Steven Angier wrote:
>
The script app in question does a great deal of text processing in memory,
>
essentially it parses custom tags out of html template documents and builds
>
websites. No apps are involved and no third party scripting additions are
>
used.
Not directly related to solving your problem, but if your system's parsing
the HTML templates at the same time it's rendering the finished pages then
this is a pretty inefficient approach. I wrote such a system last year, and
it took 10-15 minutes to generate a site. The system I replaced it with
parses the HTML templates as a separate operation, compiling them as
reusable AS template objects; this new system built the same site in 30-40
seconds (i.e. 20x faster). If you want to check out the rendering framework
it's built on, go look on my site for AWPSRenderer. The posted version is
pretty ancient but worth checking out to get an idea of the thing (the
current version is 0.9.3, available on request).
As for OS9 vs X speeds, one of the projects I'm testing it with takes 10x
_longer_ to compile templates under X than it does under 9. Right now I
have no idea why, and will have to investigate further. (It's not really a
disaster, as template compilation only ever needs to be done when templates
are added/modified. But it's certainly ticking me off.) On a cheerier note,
rendering times under X seem to be a bit faster than 9, with a site that
was taking 70 seconds now building in 50. So I guess it's a matter of YMMV
at the moment, unless anyone knows of any specific speed sumps in X.
HTH
has
--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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.