You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fastest Node.js script runner is currently yarn run, which takes about 0.19sec to run a simple echo hi command. The scripts are frequently combined or nested (e.g., "test": "jest && yarn run clear"), so this overhead can be quiet noticeable.
There is a package manager written in Reason called esy and I've heard it runs scripts instantaneiously, providing a great DX.
I am the maintainer of pnpm, which is written in TypeScript and I see the limitations of Node.js. yarn run is probably the fastest we can get with a Node.js CLI. But Volta is compiled to native code, so I think it may implement a much faster volta run command, which could become one of the main reasons to use Volta.
The text was updated successfully, but these errors were encountered:
Thanks @zkochan, I think this suggestion could be a significant QoL improvement for those kinds of scripts. There are definitely some details that would need to be ironed out, but taking advantage of the native binaries and existing "launcher" behavior of Volta makes a lot of sense!
npm/pnpm/yarn run
are slow (related pnpm issue)The fastest Node.js script runner is currently
yarn run
, which takes about 0.19sec to run a simpleecho hi
command. The scripts are frequently combined or nested (e.g.,"test": "jest && yarn run clear"
), so this overhead can be quiet noticeable.There is a package manager written in Reason called esy and I've heard it runs scripts instantaneiously, providing a great DX.
I am the maintainer of pnpm, which is written in TypeScript and I see the limitations of Node.js.
yarn run
is probably the fastest we can get with a Node.js CLI. But Volta is compiled to native code, so I think it may implement a much fastervolta run
command, which could become one of the main reasons to use Volta.The text was updated successfully, but these errors were encountered: