Skip to content

Commit 4e8e612

Browse files
authored
Clarified the word 'latency' w.r.t MPMC queues
1 parent ae314fd commit 4e8e612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ See [benchmarks](https://github.com/p-ranav/binary_log/blob/master/README.md#ben
117117
- There are numerous well-known lock-free queues available for this purpose ([moody::concurrentqueue](https://github.com/cameron314/concurrentqueue), [atomic_queue](https://github.com/max0x7ba/atomic_queue) etc.) - let the user choose the technology they want to use.
118118
- The latency of enqueuing into a lock-free queue is large enough to matter
119119
- Users who do not care about multi-threaded scenarios should not suffer the cost
120-
- Looking at the [atomic_queue benchmarks](https://max0x7ba.github.io/atomic_queue/html/benchmarks.html), the average latency across many state-of-the-art multi-producer, multi-consumer queues is around 150-250 ns
120+
- Looking at the [atomic_queue benchmarks](https://max0x7ba.github.io/atomic_queue/html/benchmarks.html), the average round-trip latency across many state-of-the-art multi-producer, multi-consumer queues, to send and receive a 4-byte integer (between 2 threads, using 2 queues) is around 150-250 ns.
121121
* Avoid writing static information more than once
122122
- Examples of static information: the format string, the number of format args, and type of each format arg
123123
- Store the static information in an "index" file

0 commit comments

Comments
 (0)