walmat/nebula-old

Bottleneck in Message Buffers

walmat opened this issue · 0 comments

Describe the bug
One trace I've found when looking for bottlenecks was that the message buffer from the task manager is constantly looking for updates and overflows the event handler because of this.

To Reproduce
Steps to reproduce the behavior:

  1. Throw a console.error('transferring messages!') statement here
  2. Launch development mode: yarn dev-server && yarn dev
  3. Run 1 task
  4. View how many times the log prints out (will be inside of the launcher.html console)
  5. Repeat 1-5 with 50 tasks

Expected behavior
This bottleneck area should not cause any performance issues 😄

Screenshots
N/A - Can't be captured in a sreenshot

Desktop (please complete the following information):

  • OS: All
  • Service: Frontend + Task Runner
  • Version: 1.2.38+

Additional context
This is just one problem area that I've traced, it probably extends further back to the event emission done by the task manager itself even..