@@ -36,11 +36,11 @@ making the code or data smaller can save time as well as space: Smaller data
36
36
takes less time to transfer between disk, memory, and CPU; it is also more
37
37
likely to fit into the CPU's fast caches.
38
38
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
44
44
processes running on the same system).
45
45
46
46
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
68
68
It's important to know what you are really trying to optimize so you can
69
69
choose the right measuments and benchmarks to guide your work.
70
70
71
- ## What this book isn't for
71
+ ## What this book isn't
72
72
73
73
I called this book * Writing Fast Rust Programs* because it's for people who
74
74
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.)
79
79
80
80
If you want to write the * most efficient program in the world* to solve a
81
81
given problem, you'll need more than just a solid understanding of your
0 commit comments