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

perf: add filesystem caching support #166

Merged
merged 4 commits into from Aug 12, 2022

Conversation

thatsmydoing
Copy link
Contributor

Adds caching to the enhanced resolve as described in the docs https://github.com/webpack/enhanced-resolve#creating-a-resolver

On https://github.com/thatsmydoing/eslint-import-resolver-typescript-158, this reduces the time from 27 seconds down to 9 seconds but that's still pretty far from 2.7.1 which takes less than 3 seconds.

@changeset-bot
Copy link

changeset-bot bot commented Aug 12, 2022

🦋 Changeset detected

Latest commit: c1b7d4d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-import-resolver-typescript Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 12, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor Author

@thatsmydoing thatsmydoing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial solution for #158

src/index.ts Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
@JounQin JounQin changed the title Add filesystem caching perf: add filesystem caching support Aug 12, 2022
@JounQin JounQin merged commit 8892a8c into import-js:master Aug 12, 2022
@JounQin
Copy link
Collaborator

JounQin commented Aug 12, 2022

@thatsmydoing Thanks for your contribution!

@thatsmydoing thatsmydoing deleted the caching-fs branch August 15, 2022 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants