Module global_counter::primitive::fast [−][src]
This module contains more performant hybrid counters, implemented using thread-locals and atomics.
These counters rely on the assumption that thread-locals are faster than global atomics, which they are on my system. No guarantee made for yours though.
Structs
ApproxCounterI8 | A global approximate counter. |
ApproxCounterI16 | A global approximate counter. |
ApproxCounterI32 | A global approximate counter. |
ApproxCounterI64 | A global approximate counter. |
ApproxCounterIsize | A global approximate counter. |
ApproxCounterU8 | A global approximate counter. |
ApproxCounterU16 | A global approximate counter. |
ApproxCounterU32 | A global approximate counter. |
ApproxCounterU64 | A global approximate counter. |
ApproxCounterUsize | A global approximate counter. |
FlushingCounterI8 | A flushing counter. |
FlushingCounterI16 | A flushing counter. |
FlushingCounterI32 | A flushing counter. |
FlushingCounterI64 | A flushing counter. |
FlushingCounterIsize | A flushing counter. |
FlushingCounterU8 | A flushing counter. |
FlushingCounterU16 | A flushing counter. |
FlushingCounterU32 | A flushing counter. |
FlushingCounterU64 | A flushing counter. |
FlushingCounterUsize | A flushing counter. |