{"repo":"tinylibs/tinypool","free":true,"listed":false,"github":"https://github.com/tinylibs/tinypool","clone":"git clone https://github.com/tinylibs/tinypool.git","description":"🧵 A minimal and tiny Node.js Worker Thread Pool implementation (38KB)","language":"TypeScript","stars":1585,"topics":["fast","worker-threads","workers","tiny","minimal","pooling","nodejs","performance","tinylibs","hacktoberfest"],"license":null,"category":"dev-tools","readme_excerpt":"Tinypool - the node.js worker pool 🧵 Piscina: A fast, efficient Node.js Worker Thread Pool implementation Tinypool is a fork of piscina. What we try to achieve in this library, is to eliminate some dependencies and features that our target users don't need (currently, our main user will be Vitest). Tinypool's install size (38KB) can then be smaller than Piscina's install size (6MB when Tinypool was created, Piscina has since reduced it's size to 800KB). If you need features like utilization or OS-specific thread priority setting, Piscina is a better choice for you. We think that Piscina is an amazing library, and we may try to upstream some of the dependencies optimization in this fork. - ✅ Smaller install size, 38KB - ✅ Minimal - ✅ No dependencies - ✅ Physical cores instead of Logical cores with physical-cpu-count - ✅ Supports worker threads and child process - ❌ No utilization - ❌ No OS-specific thread priority setting - Written in TypeScript, and ESM support only. For Node.js 18.x and higher. In case you need more tiny libraries like tinypool or tinyspy, please consider submitting an RFC Example Using node:worker threads Basic usage Main thread worker thread communication See code Using node:child process Basic usage See code Main process worker process communication See code API We have a similar API to Piscina, so for more information, you can read Piscina's detailed documentation and apply the same techniques here. Tinypool specific APIs Pool constructor options - isol","default_branch":null,"files":null,"tree":[],"storefront":"/r/tinylibs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tinylibs/tinypool/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}