-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Use FindFirstFileEx(FIND_FIRST_EX_LARGE_FETCH) instead of FindFirstFile()? #1550
Comments
It does not improve the fetch performance of the first entry. That was never the intention. It improves performance of subsequent However, it is only available in Windows 7 and later, and Git for Windows still supports Vista (even if we officially dropped support for XP due to lack of active contributors). And the most benefit would probably come from adding this to the FSCache feature. So what would make most sense is to have a static version check in the beginning of Note: this would make for an excellent first-time contribution. |
More information on when to use |
Well the reason I posted this originally was that I thought it would reduce the number of syscalls by at least 1 for since currently |
Great! I still think this has merit, in particular for |
Okay so I just did some tests and it seems this wouldn't make a huge difference like I had expected. Depending on the repo the difference for |
I'll take the 8%... :-) thank you for sharing your research! |
You know, I reimplemented this last night and it seems it could be more like 10% if you just use |
Oh apparently Windows uses a hack where it putsthe |
/remind me to take a stab at this on Thursday. |
@dscho set a reminder for Mar 22nd 2018 |
Tip for whenever you take a stab at this. I would recommend you start off with a large buffer that your system already fills up as much as possible, and only increase the size if it was actually filled as much as possible. In my tests that meant starting with enough space for 16 |
👋 @dscho, take a stab at this . |
I had a discovery today, not specifically related to this issue, but perhaps pertinent: |
Addressed via #1908. |
Edit: Apologies, never mind; it seems this doesn't improve the fetch performance of the first entry like I had thought.
The text was updated successfully, but these errors were encountered: