Bun: cgroup-aware AvailableParallelism / HardwareConcurrency on Linux

Routes navigator.hardwareConcurrency, os.availableParallelism(), and bun.getThreadCount() through WTF::numberOfProcessorCores(), which is now min(sysconf(_SC_NPROCESSORS_ONLN), sched_getaffinity co...
31 points by tosh 202 days ago github.com 12 comments
Summary not yet generated for this article.

Comments (12 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open