Socket
Socket
Sign inDemoInstall

fastemitter

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fastemitter

A fast implementation of the node EventEmitter core module


Version published
Weekly downloads
3
decreased by-72.73%
Maintainers
1
Install size
22.2 kB
Created
Weekly downloads
 

Readme

Source

FastEmitter

Fast event emitter

Benchmarks:

  • Single listener
  • Multiple separate listeners

##Pitfalls

Fast emitter is relying heavily on the fact that strings are internalized in V8. You shouldn't worry about this because in normal use event types are not dynamically generated but originate from string literals.

However you should be aware that if you do something like dynamically concatenating strings to create event name, you will slow things down.

If you have huge amount of different event types on the same event emitter, then performance will suffer. Again, in practice there are not a huge amount of different event types on the same emitter active at the same time though.

Keywords

FAQs

Last updated on 22 Oct 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc