edgedb-js icon indicating copy to clipboard operation
edgedb-js copied to clipboard

Test for hard-to-detect recursive CLI calls

Open scotttrinh opened this issue 1 year ago • 0 comments

Yarn Berry uses an even different scheme for running bin scripts: it unpacks the script into a temporary directory and adds that temporary directory into the shell's environment.

This mitigate is by far the most expensive, so it's used dead-last to avoid the overhead. Looks like on yarn 4.1.1, the call that succeeds takes an additional 140ms. Updated the call order and caching strategy to cache successful runs of the CLI (if it differs from the current cached value) to speed this up on multiple runs from newer Yarn invocations.

scotttrinh avatar May 02 '24 20:05 scotttrinh