-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Consider resurrecting the mingw_pread patches #94
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
Comments
According to https://msdn.microsoft.com/en-us/library/windows/desktop/aa365497%28v=vs.85%29.aspx, the |
For reference, I cherry-picked Zach's patch: master...pread |
I have no physical setup right now to do proper performance tests, but we would really need to do them first. And then, if it is worth it, we can always play games with lazy-loading the |
The NO_THREAD_SAFE_PREAD setting is gone from the Makefile, thus I suspect the problem has already been fixed upstream (e.g. by using Duy's patch [1]). For reference, upstream discussion is at [2] (gmane seems to be lacking the concluding messages). I also provided a thread-safe mingw_pread based on [1] http://article.gmane.org/gmane.comp.version-control.git/196042 |
@kblees but we still define |
I don't think we can stop that yet as there's still no
Who's Zach? :-) Also, we probably would want to fix the indentation in that patch before merging it. |
No, we still need NO_PREAD to get We had this discussion last year because the multi-threaded index-pack algorithm required a thread-safe One possible solution was to provide a thread-safe In other words: the |
And we also would not gain any performance in some other area by still providing a thread-safe |
I don't think so. My version does essentially the same thing as |
Chromium uses a Windows pread performance patch since quite a while, and Stefan Zager had proposed an index-pack threading patch on top of it.
I believe it makes sense to look at integrating this again, and this issue exists so we do not forget about it.
@kblees Would you have time to look at the patch again?
The text was updated successfully, but these errors were encountered: