joyent/node — pull request #6495 by morphar (2013-11-11 15:48:35+00:00)
Title: events: speed boost on emit, no listeners

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

The following is "slow" with no listeners in the this._events:

```
handler = this._events[type];
```