Skip to content
This repository was archived by the owner on Nov 26, 2020. It is now read-only.

Commit 15ddf3d

Browse files
committed
tweaks
1 parent fd41592 commit 15ddf3d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/010-intro.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ making the code or data smaller can save time as well as space: Smaller data
3636
takes less time to transfer between disk, memory, and CPU; it is also more
3737
likely to fit into the CPU's fast caches.
3838

39-
But sometimes we have to trade efficiency in one resource for inefficiency in
40-
another. For example, storing previously-computed results in a cache can
41-
make a program faster, but it also requires more RAM or disk space. Using
42-
multiple threads running in parallel might make a program finish faster but
43-
also consume more total CPU cycles (which could otherwise be used by other
39+
But sometimes, efficiency in one resource comes at the cost of inefficiency in
40+
another. For example, storing previously-computed results in a cache can make
41+
a program faster, but it also requires more RAM or disk space. Using multiple
42+
threads running in parallel might make a program finish faster but also
43+
consume more total CPU cycles (which could otherwise be used by other
4444
processes running on the same system).
4545

4646
Because of these trade-offs, it's important to know *why* you are optimizing
@@ -68,14 +68,14 @@ instead it is often a means to an end. The real objective might be one of these
6868
It's important to know what you are really trying to optimize so you can
6969
choose the right measuments and benchmarks to guide your work.
7070

71-
## What this book isn't for
71+
## What this book isn't
7272

7373
I called this book *Writing Fast Rust Programs* because it's for people who
7474
are trying to do just that. However, it can’t teach you everything you need to
75-
reach that goal. It will focus on the performance impact of specific Rust
76-
language and library features, so you can avoid needless overhead from using
77-
them the wrong way. (*Not Writing Terribly Slow Rust Programs* might be a
78-
more accurate but less catchy title.)
75+
reach that goal. Mostly it will teach about the performance impact of
76+
specific Rust language and library features, so you can avoid needless
77+
overhead from using them the wrong way. (*Not Writing Terribly Slow Rust
78+
Programs* might be a more accurate but less catchy title.)
7979

8080
If you want to write the *most efficient program in the world* to solve a
8181
given problem, you'll need more than just a solid understanding of your

0 commit comments

Comments
 (0)