Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1416

Remove child process indirection in node-runtime-worker-thread

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.3.1
    • Affects Version/s: None
    • Component/s: Performance, Tech debt
    • None
    • 3
    • Not Needed
    • Iteration Big Dipper, Iteration Earth (Jun 17-Jul 1), Iteration Fortitudo, Iteration Gamma Rays, Iteration Hippocamp, Iteration Ionosphere, Iteration Jupiter

      When we originally implemented the node-runtime-worker-thread package, we attempted to use a regular Worker thread, but couldn’t due to an issue with how Electron integrates with Node.js: https://github.com/nodejs/node/pull/36344, and therefore added an extra layer of indirection, where we spawn the Worker thread inside of a child process.

      We’ve long been on an Electron version that shouldn’t be affected by this issue, and so we should remove this extra level of indirection.

            Assignee:
            basit.chonka@mongodb.com Basit Chonka
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: