[Proto-Scripty] Re: emptyFunction() calls take up to 30% of execution time

2009-01-05 Thread redheat
Because Firebug has to open its timer and log every function call, it will appear that 30% of your execution time is emptyFunction. However, it is actually Firebug trying to log something and taking longer than the function itself. You will find that disabling Firebug will make your app run much

[Proto-Scripty] Re: emptyFunction() calls take up to 30% of execution time

2009-01-04 Thread Niko
I think this will solve itself. If I understood the announcements on Squirrelfish correctly, they are trying to inline small calls. So that a call to emptyFunction would become a noop. On 24 Dez. 2008, 21:35, npepinpe n.pepi...@gmail.com wrote: The Prototype.emptyFunction is just a dummy

[Proto-Scripty] Re: emptyFunction() calls take up to 30% of execution time

2008-12-25 Thread npepinpe
The Prototype.emptyFunction is just a dummy function; it doesn't actually do anything. emptyFunction: function() {} It's often used as a default option for callbacks and such, so that you can still call the callback even if the user hasn't specified anything. It shouldn't affect running time as