Commit 7501394e authored by Aggelos Giantsios's avatar Aggelos Giantsios

Enforce the evaluation of dereferencing (by nickie)

parent e7e43b86
{-# LANGUAGE BangPatterns #-}
-- --
-- orbit-int hash table (storing vertices on a worker) -- orbit-int hash table (storing vertices on a worker)
-- --
...@@ -50,7 +51,7 @@ is_member x i t = elem x (t ! i) ...@@ -50,7 +51,7 @@ is_member x i t = elem x (t ! i)
-- insert(X, I, T) inserts X into table T at slot I. -- insert(X, I, T) inserts X into table T at slot I.
insert :: Vertex -> Int -> VTable -> VTable insert :: Vertex -> Int -> VTable -> VTable
insert x i t = t // [(i, x : t ! i)] insert !x i t = t!i `seq` t // [(i, x : t ! i)]
-- get_freq computes the fill frequency of table T; -- get_freq computes the fill frequency of table T;
-- the output is a list of integers where the number at position I -- the output is a list of integers where the number at position I
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment