Changes between Version 7 and Version 8 of DependencyAnalysis

Show
Ignore:
Timestamp:
08/13/07 18:13:03 (6 years ago)
Author:
pgavin@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DependencyAnalysis

    v7 v8  
    8989---- 
    9090 
    91 So, after trying to code this, I finding the rule chain has a runtime worst case O(numRules^2) unless you cache the results as a dependency  graph.  I guess you were right then, Duncan :) 
     91So, after trying to code this, I finding the rule chain has a runtime worst case O(numRules^2^) unless you cache the results as a dependency  graph.  I guess you were right then, Duncan :) 
    9292 
    9393So, anyhow, I think I'm going to thread the depgraph in a monad.  I figure 
     
    9797should suffice, and 
    9898 
    99 newtype DepGraphT a = StateT DepGraphT IO a 
     99type DepGraphT a = StateT DepGraphT IO a 
    100100 
    101101will do the trick.