tinylibs / tinypool

🧵 A minimal and tiny Node.js Worker Thread Pool implementation (38KB)

Home Page:https://npmjs.com/package/tinypool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux Alpine

darthf1 opened this issue · comments

Hi!

This library uses lspcu to find the number of cpus in linux, however in Alpine this command is not available by default, unless you install the util-linux package.

Is it possible to detect Alpine and use the output of cat /proc/cpuinfo to detect the number of cores?

(or use cat /proc/cpuinfo by default)

@darthf1 Hey, sure! I'll look into it! Nice info btw.

@darthf1 Released 0.1.3, let me know if it's fixed!

@Aslemammad Works great for me! Thanks!

@darthf1 Happy to hear that!