• Hi all,

    I'm extending our inhouse agent platform to espruino and it seems that using apply() or call() is causing a very big slowdown. In my testcase it is between 0.5 seconds without and 15 seconds with call or apply. I'm not sure why this should be such a difference.. Can anyone shed some light on this?

    My code is on here:
    https://github.com/AlexDM0/espruinoEVE
    The example file is espruinoCall.js
    You can alter line 150 to see the difference.

    agent[message.content.method].call(agent,message.content.params,callback);
    

    to

    agent[message.content.method] (message.content.params,callback);
    

    I tried putting it in a small example to show the problem but I think its due to the size of the objects that it's slowing down. I couldn't succesfully reproduce it in a tiny example.

About

Avatar for Alex @Alex started