Skip to content

Cache getExePath() for performance reasons #2836

@tido64

Description

@tido64

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions