On 6/21/12 7:30 AM, Mariusz Nowak wrote:
Alan, we use asynchronous programming for tasks that take time, so in
that case, whether we wrap such tasks with closure or prototype solution
wouldn't make difference in performance. I think debating on performance
in that case is pointless.

I believe I came to a similar conclusion based on my little experiment, especially since closures offer almost exactly the same performance as a prototype based approach.

If it were the case that a prototype based control flow library was an order of magnitude faster than closures, as it appears it would be in Spidermonkey, then it would be worth questioning the costs of closures.

--
Alan Gutierrez - http://twitter.com/bigeasy - http://github.com/bigeasy

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to