Why is dispatch so fast?
Monte Goulding
monte at sweattechnologies.com
Sun Nov 10 01:30:38 EST 2013
On 10/11/2013, at 5:20 PM, Richard Gaskin <ambassador at fourthworld.com> wrote:
> For anyone here who's read enough of the source to have figured this out (which I guess means Monte and Mark Wieder):
>
> Why is the dispatch command so much faster than do, send, or call?
>
> Is there an option to optimize the others, or something unique about dispatch that allows it to be between 30% and 50% faster?
The main difference appears to be send needs to parse the params from the string. Do obviously needs to be parsed on the fly too.
>
>
> Bonus points: Why is the Server standalone engine so much larger than the Linux standalone engine?
Server is statically linked to a bunch of libraries to improve portability.
>
> Ah, the mysteries of the code base...
--
Monte Goulding
M E R Goulding - software development services
mergExt - There's an external for that!
More information about the use-livecode
mailing list