DigiNews

Tech Watch by Johan Denoyer

← Back to articles

os: cgroup-aware availableParallelism / hardwareConcurrency on Linux (#28801)

Quality: 7/10 Relevance: 8/10

Summary

The article covers a merged Bun pull request that makes availableParallelism and hardwareConcurrency Linux-cgroup aware. It routes navigator.hardwareConcurrency and Bun's thread-count logic through WTF::numberOfProcessorCores(), taking into account cgroup quotas and container environments. The changes involve cross-repo WebKit integration, new bindings, and a focus on avoiding over-provisioning threads in constrained environments; the PR shows careful consideration of performance implications and validation results.

🚀 Service construit par Johan Denoyer