Skip to contentSkip to conversation

count: Fix typos

PATCH-perfbook Applied Johann Klähn 2 participants 4 messages Jan 29, 2022 – Feb 1, 2022

lore
Share & tools
lore
#0 lore raw

---
Hi Paul,

I'm really enjoying the book and hope that I can contribute back a little bit in the form of small fixes. As this is my first patch to this list, please point out anything I could improve in the future (e.g., granularity of patches).

Thanks
Johann

---
 count/count.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
count/count.tex +2 -2
index d2b39904..f4e74c13 100644
@@ -3237,7 +3237,7 @@ Summarizing the summary:
 	\Cref{fig:count:Atomic Increment Scalability on x86}
 	illustrates this point:
 	Atomic increment might be completely acceptable for a two-CPU
-	system, but be completely inadequate for an eight-CPU system.
+	system, but can be completely inadequate for an eight-CPU system.
 \end{enumerate}
 
 \begin{figure}
@@ -3251,7 +3251,7 @@ Summarizing still further, we have the ``big three'' methods of
 increasing performance and scalability, namely
 (1)~\emph{partitioning} over CPUs or threads,
 (2)~\emph{batching} so that more work can be done by each expensive
-synchronization operations, and
+synchronization operation, and
 (3)~\emph{weakening} synchronization operations where feasible.
 As a rough rule of thumb, you should apply these methods in this order,
 as was noted earlier in the discussion of
Signature · 1 line
2.34.1
#1 lore raw
Quoted 7 lines · Johann Klähn

---
Hi Paul,

I'm really enjoying the book and hope that I can contribute back a little bit in the form of small fixes. As this is my first patch to this list, please point out anything I could improve in the future (e.g., granularity of patches).

Queued and pushed, thank you! I did take the liberty of changing your added "can" to a "nevertheless". Does that work for you?

Thanx, Paul

Quoted 31 lines

Thanks
Johann

---
 count/count.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
count/count.tex +2 -2
index d2b39904..f4e74c13 100644
@@ -3237,7 +3237,7 @@ Summarizing the summary:
 	\Cref{fig:count:Atomic Increment Scalability on x86}
 	illustrates this point:
 	Atomic increment might be completely acceptable for a two-CPU
-	system, but be completely inadequate for an eight-CPU system.
+	system, but can be completely inadequate for an eight-CPU system.
 \end{enumerate}
 
 \begin{figure}
@@ -3251,7 +3251,7 @@ Summarizing still further, we have the ``big three'' methods of
 increasing performance and scalability, namely
 (1)~\emph{partitioning} over CPUs or threads,
 (2)~\emph{batching} so that more work can be done by each expensive
-synchronization operations, and
+synchronization operation, and
 (3)~\emph{weakening} synchronization operations where feasible.
 As a rough rule of thumb, you should apply these methods in this order,
 as was noted earlier in the discussion of
Signature · 1 line
2.34.1
#2 lore raw
Quoted 2 lines · Paul E. McKenney

Queued and pushed, thank you! I did take the liberty of changing your added "can" to a "nevertheless". Does that work for you?

Sure, in that case maybe also remove the second “be”?
| Atomic increment might be completely acceptable for a two-CPU | system, but nevertheless completely inadequate for an eight-CPU system.

Thanks
Johann

#3 lore raw
Quoted 7 lines · Johann Klähn
Quoted 2 lines · Paul E. McKenney

Queued and pushed, thank you! I did take the liberty of changing your added "can" to a "nevertheless". Does that work for you?

Sure, in that case maybe also remove the second “be”?
| Atomic increment might be completely acceptable for a two-CPU | system, but nevertheless completely inadequate for an eight-CPU system.

Good point in that the sentence is still a bit awkward. So what I have done is to add a LaTeX comment that will remind me to think harder about it. If I don't get a good replacement by (say) March, please remind me about it.

Thanx, Paul