tgoe wrote:Well I know calling out to the DOM and long scope chain lookups in general is slower.
tgoe wrote:I didn't think regular function/method calls are all that expensive.
tgoe wrote:Regardless, thinking about speed defeats the purpose of the articles;
long lexical scope lookup is near O(1) in V8
In an interpreted language a function call is never _just_ a junction call
tgoe wrote:So it is, indeed, slower than a short lookup?
tgoe wrote:Of course. Its never been more true than in JavaScript when hitting the DOM API with all the side effects. By regular function call I meant calling a function defined in the script itself.
Return to Interpreted Languages
Users browsing this forum: No registered users and 0 guests