Skip to content
  • Allison Karlitskaya's avatar
    optimise bitlocks with new atomic operations · d09443fe
    Allison Karlitskaya authored
    Add a performance test for bitlocks.
    
    Make use of the new g_atomic_int_{and,or} to avoid having to do the
    usual compare-and-exchange loop.
    
    On a test machine, the change increases performance from approximately
    20 million uncontended acquire/releases per second to 31 million.
    d09443fe