Compute the p_mem / p_dsk statically
authorIustin Pop <iustin@google.com>
Sun, 22 Feb 2009 12:05:08 +0000 (13:05 +0100)
committerIustin Pop <iustin@google.com>
Sun, 22 Feb 2009 12:05:08 +0000 (13:05 +0100)
commit0335fe4a9310b7e55cdc6e2f3dd7f505cc3d7309
tree5f11a28f6fe437c4174d444f6ca7a6179cc3638c
parentd53264c02f36aec33ed05ffd27bfd88c80254546
Compute the p_mem / p_dsk statically

This patch changes the computation of p_mem / p_dsk from on-demand
(whenever the cluster stats are computed) to after-modify (after a node
is modified, we update its stats). This brings a god speed-up as only
one node or two are usually changed between cluster-wide stats are
computed.
src/Cluster.hs
src/Node.hs