Mercurial > repos > icfp2012
diff src/sim.tp @ 60:7d4e51b4769a
Add hashset based pruning
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 16 Jul 2012 01:55:04 -0700 |
parents | a37ceb0a4f5c |
children | ff2b38518a58 |
line wrap: on
line diff
--- a/src/sim.tp Mon Jul 16 01:24:47 2012 -0700 +++ b/src/sim.tp Mon Jul 16 01:55:04 2012 -0700 @@ -371,6 +371,14 @@ myclone lambdaCount!: lambdaCount myclone } + hash <- { + value <- ((grid get: 0) id) * 128 + foreach: grid :idx el { + value <- 1000003 * value + (el id) + } + //TODO add in any important state from outside grid + value + } } foreach: in_grid :index el{ _nextGrid append: el