|
|
|
|
|
by trevnorris
4686 days ago
|
|
> my closures are executed oh, about 100 times a second (e.g. completely negligible perf hit). This is a seriously flawed benchmark. Take Node's case where you're accepting HTTP requests. Each request is going to require a new instance, and call into the connection listener. If the connection listener contains all the function declarations for all events attached to the client then you loose the performance you could have had by v8 using a previously optimized function. The benchmark was intentionally made to show worst case. I don't expect every application to magically run 80% faster just because they moved some function declarations around. |
|