`.on` seems a pretty heavy operation given that it crafts a new function every time. In the real world I assume it's a pretty hot path (take data listeners for http for example).
It would be interesting to provide a real-world test, with `.on` benchmarked too. On 06/18/2013 03:38 AM, Tim Smart wrote: > For anyone to play around with and maybe develop further: > > https://gist.github.com/tim-smart/5801765 > > Has some benchmarks at the bottom of the file, run it and see the results :) > > Idea came from felixge's performance talk on the MySQL client - would love to > see where this goes as a high-performance simple event-emitter. > > Tim >
signature.asc
Description: OpenPGP digital signature
