Skip to content

Commit 82fe7a2

Browse files
EdwinRytshepang
authored andcommitted
Few readability fixes
1 parent 87ac19a commit 82fe7a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/salsa.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ is going to be checked, which could be costly. Salsa only needs to check each
6060
downstream computation until it finds one that isn't changed. At that point, it
6161
won't check other derived computations since they wouldn't need to change.
6262

63-
It's is helpful to think about this as a graph with nodes. Each derived value
63+
It's helpful to think about this as a graph with nodes. Each derived value
6464
has a dependency on other values, which could themselves be either base or
6565
derived. Base values don't have a dependency.
6666

@@ -71,12 +71,12 @@ J <- B <--+
7171
```
7272

7373
When an input `I` changes, the derived value `A` could change. The derived
74-
value `B` , which does not depend on `I`, `A`, or any value derived from `A` or
74+
value `B`, which does not depend on `I`, `A`, or any value derived from `A` or
7575
`I`, is not subject to change. Therefore, Salsa can reuse the computation done
7676
for `B` in the past, without having to compute it again.
7777

7878
The computation could also terminate early. Keeping the same graph as before,
79-
say that input `I` has changed in some way (and input `J` hasn't) but, when
79+
say that input `I` has changed in some way (and input `J` hasn't), but when
8080
computing `A` again, it's found that `A` hasn't changed from the previous
8181
computation. This leads to an "early termination", because there's no need to
8282
check if `C` needs to change, since both `C` direct inputs, `A` and `B`,

0 commit comments

Comments
 (0)