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 canSymlink result to avoid performance penalty #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

raycohen
Copy link

@raycohen raycohen commented Oct 9, 2023

In a build with a large amount of FSUpdater instances created, the performance hit from testCanSymlink is substantial - over 2.5 seconds in my case, with that time coming from redundant calls to various fs methods:

Screenshot 2023-10-09 at 4 33 26 PM

@raycohen raycohen marked this pull request as ready for review October 9, 2023 20:43
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

Successfully merging this pull request may close these issues.

1 participant