Few readability fixes
This commit is contained in:
parent
4505f706b1
commit
03fafb5d85
|
|
@ -60,7 +60,7 @@ is going to be checked, which could be costly. Salsa only needs to check each
|
||||||
downstream computation until it finds one that isn't changed. At that point, it
|
downstream computation until it finds one that isn't changed. At that point, it
|
||||||
won't check other derived computations since they wouldn't need to change.
|
won't check other derived computations since they wouldn't need to change.
|
||||||
|
|
||||||
It's is helpful to think about this as a graph with nodes. Each derived value
|
It's helpful to think about this as a graph with nodes. Each derived value
|
||||||
has a dependency on other values, which could themselves be either base or
|
has a dependency on other values, which could themselves be either base or
|
||||||
derived. Base values don't have a dependency.
|
derived. Base values don't have a dependency.
|
||||||
|
|
||||||
|
|
@ -76,7 +76,7 @@ value `B` , which does not depend on `I`, `A`, or any value derived from `A` or
|
||||||
for `B` in the past, without having to compute it again.
|
for `B` in the past, without having to compute it again.
|
||||||
|
|
||||||
The computation could also terminate early. Keeping the same graph as before,
|
The computation could also terminate early. Keeping the same graph as before,
|
||||||
say that input `I` has changed in some way (and input `J` hasn't) but, when
|
say that input `I` has changed in some way (and input `J` hasn't), but when
|
||||||
computing `A` again, it's found that `A` hasn't changed from the previous
|
computing `A` again, it's found that `A` hasn't changed from the previous
|
||||||
computation. This leads to an "early termination", because there's no need to
|
computation. This leads to an "early termination", because there's no need to
|
||||||
check if `C` needs to change, since both `C` direct inputs, `A` and `B`,
|
check if `C` needs to change, since both `C` direct inputs, `A` and `B`,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue