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
[flutter_tools] cache more directories #112651
[flutter_tools] cache more directories #112651
Conversation
|
||
// .basename is surprisingly slow as it hits the real file system to ask for the | ||
// current directory. | ||
String _approximateBasename(FileSystemEntity entity, FileSystem fileSystem) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a large part of the performance fix. Even though we cache the Path context on our error handling filesystem, at this point entity.fileSystem returns localFileSystem instead of ErrorHandlingFIleSystem.
With #112673, is the workaround for using the right filesystem object no longer necessary? |
Correct, I'll remove that part |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This reverts commit 99fb2d3.
#112640