joyent/node — pull request #6494 by morphar (2013-11-11 14:43:36+00:00)
Title: Speed boost for emit, when there is no listeners

Speed increase is roughly 4-5x - making emit when there is no listeners as fast as when there is...

For some reason, the following is extremely slow, with no listeners in the this._events:
```
handler = this._events[type];
```