Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache performance issue #90

Closed
dgruszcz opened this issue Jan 4, 2023 · 1 comment
Closed

Cache performance issue #90

dgruszcz opened this issue Jan 4, 2023 · 1 comment

Comments

@dgruszcz
Copy link

dgruszcz commented Jan 4, 2023

module.exports.getCompilerOptions = memoize(getCompilerOptions);

memoize for getCompilerOptions uses path of the formatted file as a cache key instead of the tsconfig file path (as in v3.1.1). It causes that the tsconfig file content is parsed for each formatted file regardless if they are related to same tsconfig file or not. This adds unneccessary constant delay and for a large number of files it quickly adds up.

@simonhaenisch
Copy link
Owner

Cool thanks for reporting yeah will need to get that fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants