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

Mac: Don't download file sizes as part of OnEnumerateDirectory #1398

Merged
merged 2 commits into from
Aug 1, 2019

Conversation

wilbaker
Copy link
Member

Resolves #699

As part of #1130 PrjFSLib was updated to stop filling placeholders with empty data. With that change, VFS4G on Mac no longer needs to download sizes when it writes placeholders.

With this optimization expanding the src folder of a fresh clone in Finder was reduced from ~2min30sec to ~5sec on my MacBook.

The same optimization can be made when VFS4G updates placeholders on Mac, and #1397 has been filed for that.

@wilbaker
Copy link
Member Author

/azp run GitHub VFSForGit Mac Large Repo Perf Tests

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@wilbaker
Copy link
Member Author

/azp run GitHub VFSForGit Mac Large Repo Perf Tests

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

Copy link
Member

@kewillford kewillford left a comment

Choose a reason for hiding this comment

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

Looks good. Gave a couple of suggestions.

GVFS/GVFS.Platform.Mac/MacFileSystemVirtualizer.cs Outdated Show resolved Hide resolved
GVFS/GVFS.Platform.Mac/MacFileSystemVirtualizer.cs Outdated Show resolved Hide resolved
Copy link
Member

@jeschu1 jeschu1 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

- Add comments where needed
- Stop creating BlobSizeConnections in OnEnumerateDirectory
- Remove populateSizes parameter from GetProjectedItems
@wilbaker
Copy link
Member Author

/azp run GitHub VFSForGit Mac Large Repo Perf Tests

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@wilbaker wilbaker closed this Jul 31, 2019
@wilbaker wilbaker reopened this Jul 31, 2019
@wilbaker
Copy link
Member Author

/azp run GitHub VFSForGit Mac Large Repo Perf Tests

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@wilbaker
Copy link
Member Author

/azp run GitHub VFSForGit Mac Large Repo Perf Tests

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

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

Successfully merging this pull request may close these issues.

Mac: Navigating a fresh clone in Finder can be slow
3 participants