“By breaking these steps down cleanly and having deterministic results, Yarn is able to parallelize operations, which maximizes resource utilization and makes the install process faster. On some Facebook projects, Yarn reduced the install process by an order of magnitude, from several minutes to just seconds. Yarn also uses a mutex to ensure that multiple running CLI instances don't collide and pollute each other.”
More from Sebastian McKenzie
“At Facebook we're already using Yarn in production, and it's been working really well for…”
“Yarn is a new package manager that replaces the existing workflow for the npm client or…”
“Initially, following the prescribed best practices, we only checked in package.json and…”