[project @ 2001-12-06 17:33:30 by simonmar]
authorsimonmar <unknown>
Thu, 6 Dec 2001 17:33:30 +0000 (17:33 +0000)
committersimonmar <unknown>
Thu, 6 Dec 2001 17:33:30 +0000 (17:33 +0000)
Make the Name field of a Var strict - it doesn't hurt performance (in
fact it makes a tiny improvement) but it can help residency.

ghc/compiler/basicTypes/Var.lhs

index 9545f48..6e481a7 100644 (file)
@@ -66,7 +66,7 @@ in its @VarDetails@.
 \begin{code}
 data Var
   = Var {
-       varName    :: Name,
+       varName    :: !Name,
        realUnique :: FastInt,          -- Key for fast comparison
                                        -- Identical to the Unique in the name,
                                        -- cached here for speed