fix and iterator, add some logging, and reenable

This commit is contained in:
Barak Michener 2014-08-12 16:38:10 -04:00
parent 99d44e3228
commit b6d966e9b5
3 changed files with 33 additions and 16 deletions

View file

@ -70,7 +70,7 @@ func (it *And) Optimize() (graph.Iterator, bool) {
// now a permutation of itself, but the contents are unchanged.
its = optimizeOrder(its)
//its = materializeIts(its)
its = materializeIts(its)
// Okay! At this point we have an optimized order.
@ -327,7 +327,7 @@ func (it *And) Stats() graph.IteratorStats {
}
}
return graph.IteratorStats{
ContainsCost: ContainsCost,
ContainsCost: ContainsCost * 2,
NextCost: NextCost,
Size: Size,
}