▲ | ibraheemdev 5 days ago | |||||||||||||||||||||||||
I'm referring to the performance implications of the hardware instruction, not the programming language semantics. Incrementing or decrementing the reference count is going to require an RMW instruction, which is expensive on x86 regardless of the ordering. | ||||||||||||||||||||||||||
▲ | Kranar 5 days ago | parent [-] | |||||||||||||||||||||||||
The concept of sequential consistency only exists within the context of a programming language's memory model. It makes no sense to speak about the performance of sequentially consistent operations without respect to the semantics of a programming language. | ||||||||||||||||||||||||||
|