andywer / andywer/threads.js

Ability to specify worker_threads/tinyworker

オープン
#229 コメント 21 件 リアクション 3 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
3.5k
フォーク
173
PR マージ指標
30日以内にマージされた PR はありません

説明

Hello, I hope you are having a nice day (Stay safe!)

Would it be possible to make a pre-launch option where you could specify the method of spawning (but only for certain workers/pools ?)
Apparently, some modules like the canvas module are **not context aware** and therefore its impossible for me to use worker_threads... But then again I don't want to use child_processes for all pools/workers. Can *spawning a certain pool using tinyworker without touching the other pools* be possible without major changes?

PS: I'm on node12 but I had to make tweaks to force threads.js to use tiny-worker module but then again, all my stuff are now using child processes and consuming A LOT of resources.

If you have another advice I should use to combat the "non context aware" issue, I would love to hear it. Thanks a lot once again :D

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。