react icon indicating copy to clipboard operation
react copied to clipboard

Blocking the event loop spawnSync

Open Mohamednowfil opened this issue 1 year ago • 0 comments

To avoid blocking event loop use execSync is best compare to SpawnSync this cause performance, when running multiple concurrent tasks in React build pipeline

Consider replacing spawnSync with spawn to prevent blocking

const sha = execSync('git rev-parse HEAD').slice(0, 8);

Mohamednowfil avatar Nov 28 '24 17:11 Mohamednowfil