• 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: possible bug? Radically different time profile for list access in script objects or by explicit reference.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possible bug? Radically different time profile for list access in script objects or by explicit reference.


  • Subject: Re: possible bug? Radically different time profile for list access in script objects or by explicit reference.
  • From: email@hidden (Michael Sullivan)
  • Date: Mon, 11 Mar 2002 13:09:04 -0500
  • Organization: Society for the Incurably Pompous

Christopher Nebel writes
> On Friday, March 8, 2002, at 08:17 AM, Michael Sullivan wrote:

> >> I'd like to see a comment from Chris N. on this one.
> >>
> >> My guess is that a temporary copy of the list is being made every time
> >> an item is accessed, even if the list will not be changed. Explicitly
> >> specifying a reference (which probably happens internally if using a
> >> script object), tells the interpreter that the existing list can be
> >> used.
> >>
> >> My guess is that there's a missing "const &" (or whatever the
> >> equivalent
> >> construct is in the language actually used -- 'const &' is C++) in some
> >> important function prototypes in the list code.
> >
> > Should this be submitted as a bug report?

> It already has been. If the cause was as simple as Paul guesses, I
> would have fixed this a long time ago, but unfortunately it's not.

Actually that was my guess, not Paul's. I think you got confused
because I quoted my own post and deleted a '>'.

I suppose the suggestion is a little presumptuous, but I didn't realize
you'd already had this reported.

> AppleScript takes a number of precautions to protect itself against
> circular structures, and one of them leads to this slow-down. I'm not
> convinced that it really needs to do this, but changing it is not
> something to take lightly.

Understood. Given that there are workarounds, and no correctness
problem, it's probably wise to be hesitant if it's not a fairly simple
fix.


Michael

--
Michael Sullivan
Business Card Express of CT Thermographers to the Trade
Cheshire, CT email@hidden
_______________________________________________
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.

References: 
 >Re: possible bug? Radically different time profile for list access in script objects or by explicit reference. (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: possible bug? Radically different time profile for list access in script objects or by explicit reference.
  • Next by Date: Can setting SMTP Authorization checkbox in OE be done outside of AppleScript?
  • Previous by thread: Re: possible bug? Radically different time profile for list access in script objects or by explicit reference.
  • Next by thread: Running a Script Automatically
  • Index(es):
    • Date
    • Thread