On 2/4/14, Stanislav Blinov <stanislav.bli...@gmail.com> wrote:
> Both atomicLoad and atomicStore use raw MemoryOrder, and also the
> atomicStore is out of the synchronized {} section:
>
> http://dpaste.dzfl.pl/291abc51bb0e

No difference, but maybe the timing precision isn't proper. It always
displays one of 3/3.25/4 msecs. Anywho what's important is that Atomic
is really speedy and Sync is almost as fast. Except with DMD which is
bad at optimizing this specific code.

Reply via email to