Why is dispatch so fast?

Richard Gaskin ambassador at fourthworld.com
Mon Nov 11 22:23:14 EST 2013


Monte Goulding wrote:

 > On 12/11/2013, at 2:06 PM, Richard Gaskin wrote:
 >
 >>> Yes, it's the runtime parsing that slows these down.
 >>
 >> Here's an example where the overhead should be the same
 >
 > Nope... dispatch knows it's only got a command name so it
 > just needs to message the object with the command. Send
 > potentially has vars so it needs to parse them out. Do
 > could potentially be anything... I haven't looked at it
 > but I suspect it's got to parse then execute as a separate
 > script.

Ah, yes - it's not what it's doing there, but getting to the point where 
it can know what it's doing there.

Thanks.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for Desktop, Mobile, and Web
  ____________________________________________________________
  Ambassador at FourthWorld.com        http://www.FourthWorld.com




More information about the use-livecode mailing list