node icon indicating copy to clipboard operation
node copied to clipboard

events: use bitset in listener to save memory

Open mabaasit opened this issue 1 year ago • 9 comments

Use bitset to save listener flags.

mabaasit avatar Jul 06 '22 09:07 mabaasit

There are many other good optimization ideas namely not using a linked list for listeners

I'll be working on that in a separate PR.

mabaasit avatar Jul 06 '22 11:07 mabaasit

CI is locked due to a security release - the process from now (sorry if this is stuff you know, telling you since it's your first code contribution here):

  • We wait for CI to unlock and run CI
  • We (hopefully) get a second LGTM on this (or review/comments and iterate)
  • In 2 days (assuming two approvals) or 7 (assuming just me) this lands in core assuming tests pass and there are no objections

I will also trigger a CI benchmark run for events since we do test perf - might be a good idea to run it locally to practice if you want there is info in [the docs](https://github.com/nodejs/node/blob/main/doc/contributing/writing-and-running-benchmarks.md.

cc @jasnell @linkgoron for more reviewers probably? (Although Antoine already started reviewing and is also a good reviewer and usually finds useful stuff)

benjamingr avatar Jul 06 '22 11:07 benjamingr

CI: https://ci.nodejs.org/job/node-test-pull-request/45171/

nodejs-github-bot avatar Jul 08 '22 10:07 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/45175/

nodejs-github-bot avatar Jul 08 '22 11:07 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/45191/

nodejs-github-bot avatar Jul 08 '22 21:07 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/45202/

nodejs-github-bot avatar Jul 09 '22 09:07 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/45222/

nodejs-github-bot avatar Jul 09 '22 15:07 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/45947/

nodejs-github-bot avatar Aug 09 '22 13:08 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/45951/

nodejs-github-bot avatar Aug 09 '22 15:08 nodejs-github-bot

Landed in 9b8ba2536044 🎉

addaleax avatar Aug 10 '22 11:08 addaleax