Please sign in to comment.
if EventEmitter exposed a protected HaveListeners method then objects…
… that emit events with payloads which are particularly costly to construct could optimize by using it. This is a naive implementation that affords a 15% performance improvement in one sample use case. This patch would be more interesting if the HaveListeners check itself could be made less expensive
- Loading branch information...
Showing with 12 additions and 0 deletions.