joyent/node — pull request #4449 by indutny (2012-12-21 06:00:12+00:00)
Title: events: improve .emit() method's speed by ~17%

Avoid accessing arguments array in most common cases (up to 3 arguments).

With attached benchmark, results on master:

one listener - 524ms, multiple - 3539ms

And with this patch:

one listener - 445ms, multiple - 3442ms