Boost logo

Boost :

Subject: [boost] [sync] [thread] Faster mutex
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2015-01-30 09:09:40


Hi,

One of the Mesa developers implemented a faster mutex:
http://lists.freedesktop.org/archives/mesa-dev/2015-January/075260.html

According to the sources of glibc, Mesa's mutex has a much smaller size
(only 1 uint32_t vs 6 ints + 2 pointers), performs less actions before and
after the actual syscall (no getting and setting of the
mutex->__data.__owner, no type field checks)

This gives an ~10% speedup.

Just curious, maybe ideas from Mesa's mutex could be useful for some of the
Boost libraries.

-- 
Best regards,
Antony Polukhin

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk