Re: mutex vs turnstile

2018-02-14 Thread Mateusz Guzik
On Thu, Jan 18, 2018 at 10:38:02AM +, Nick Hudson wrote: > On 01/09/18 03:30, Mateusz Guzik wrote: > > Some time ago I wrote about performance problems when doing high -j > > build.sh and made few remarks about mutex implementation. > > > > TL;DR for that one was mostly that cas returns the fou

Re: mutex vs turnstile

2018-01-18 Thread Nick Hudson
On 01/09/18 03:30, Mateusz Guzik wrote: Some time ago I wrote about performance problems when doing high -j build.sh and made few remarks about mutex implementation. TL;DR for that one was mostly that cas returns the found value, so explicit re-reads can be avoided. There are also avoidable expl

mutex vs turnstile

2018-01-09 Thread Mateusz Guzik
Some time ago I wrote about performance problems when doing high -j build.sh and made few remarks about mutex implementation. TL;DR for that one was mostly that cas returns the found value, so explicit re-reads can be avoided. There are also avoidable explicit barriers (yes, I know about the old O