Re: Libraries and effiency
Re: Libraries and effiency
- Subject: Re: Libraries and effiency
- From: Tommy Bollman <email@hidden>
- Date: Fri, 30 Jul 2010 19:08:20 +0200
I just want to add the LibrarLister handle hierarchies in the Libaries.
Say you have script object called dating_functions, then you will easily find the date function under that header.
you can even have script objects within that again, and handlers which contain script objects and so on, giving you
access to handlers 5 levels below the top level of the script, which I felt were enough.
The larges libraries I tested it on was approx thousand lines. It took about 0.3 seconds to parse them, not taking decompile time into account.
There is no downside to such libraries if the are resident in a script server.
Preferable one which loads related handlers from different libraries, and has functions for reloading the script objects runtime.
On 30 Jul 2010, at 17:48, Simon Topliss wrote:
> On 30 Jul 2010, at 16:12, Emmanuel LEVY wrote:
>
>> On Jul 30, 2010, at 3:34 PM, Jim Brandt wrote:
>>
>>> The downside of this is, when I only need a date handler or a message handler, I'm loading the whole library.
>>
>> Could you elaborate about why this is a downside?
>
> Because when you've accumulated thousands of functions, it becomes unmaintainable. And besides from that, it's good practice.
>
> Simon
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
Best regards
Tommy Bollman
--------------------------------------------------------------------------------------------------
Mollison's Bureaucracy Hypothesis:
If an idea can survive a bureaucratic review
and be implemented it wasn't worth doing.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden