• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Libraries and effiency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Libraries and effiency (From: Jim Brandt <email@hidden>)
 >Re: Libraries and effiency (From: Emmanuel LEVY <email@hidden>)
 >Re: Libraries and effiency (From: Simon Topliss <email@hidden>)

  • Prev by Date: Re: Remote Script Server
  • Next by Date: Re: Converting Pictures via AppleScript?
  • Previous by thread: Re: Libraries and effiency
  • Next by thread: Re: Libraries and effiency
  • Index(es):
    • Date
    • Thread