bermi / eventify

Lightweight module that can be mixed in to any object in order to provide it with custom events. For node.js and the browser. Based on Backbone.Events
37 stars 2 forks source link

Improve code optimization by V8 #6

Closed bermi closed 8 years ago

bermi commented 8 years ago

Eventify trigger uses arguments in a way that it can't be optimized by V8. Given this is such a hot code path in many apps we should make it easy for V8 to optimize it.

https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments