Changes between Version 9 and Version 10 of DependencyAnalysis
- Timestamp:
- 05/28/08 20:06:36 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DependencyAnalysis
v9 v10 120 120 Considering only files we can solve this by checking if target T is older than all its dependencies, using timestamps. 121 121 122 If T depends on {{{d = FileExist "foo.hs" instead}}}, we have a problem since we can't assing a sensibile timestamp to {{{d}}}, what really matters i f the value computed for that dependency has changed or not wrt when we built T, so we can test this condition by storing the old value (that we'll call the representation, in this case a Bool) and compare it to the current one.122 If T depends on {{{d = FileExist "foo.hs" instead}}}, we have a problem since we can't assing a sensibile timestamp to {{{d}}}, what really matters is if the value computed for that dependency has changed or not wrt when we built T, so we can test this condition by storing the old value (that we'll call the representation, in this case a Bool) and compare it to the current one. 123 123 124 124 If all the cached representations are equal to the ones in the current environment for both the dependencies and the target, then we don't have to build T again, since the old one is still valid.
