Would it be possible to have getExePath() cache its result so we don't have to do all this lookup every time tsgo is invoked? The platform and arch rarely changes once installed on disk.
In one of the repositories I'm maintaining, we've inlined what tsgo.js does and added caching on top of it. We're not a very big monorepo, but this shaved off several seconds for us.
Would it be possible to have
getExePath()cache its result so we don't have to do all this lookup every timetsgois invoked? The platform and arch rarely changes once installed on disk.In one of the repositories I'm maintaining, we've inlined what
tsgo.jsdoes and added caching on top of it. We're not a very big monorepo, but this shaved off several seconds for us.