You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some atomic operations are compiled to C calls when they could be compiled to one or two instructions, which would be both shorter and faster than a C call. This is the case of Atomic.fetch_and_add, Atomic.incr , and Atomic.decr, but also, as pointed out by @polytypic in a discussion, Atomic.compare_and_set, Atomic.exchange and Atomic.set, when the operand is integer-like.
The text was updated successfully, but these errors were encountered:
Would be nice to see some (not micro) benchmarks. Are there perhaps some queue implementations that can benefit from such inlining where we can see marked increase in throughput?
Some atomic operations are compiled to C calls when they could be compiled to one or two instructions, which would be both shorter and faster than a C call. This is the case of
Atomic.fetch_and_add
,Atomic.incr
, andAtomic.decr
, but also, as pointed out by @polytypic in a discussion,Atomic.compare_and_set
,Atomic.exchange
andAtomic.set
, when the operand is integer-like.The text was updated successfully, but these errors were encountered: