From 8408f31662e0db548650b3aacff39a324cb9e296 Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 6 Dec 2001 17:33:30 +0000 Subject: [PATCH] [project @ 2001-12-06 17:33:30 by simonmar] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/compiler/basicTypes/Var.lhs b/ghc/compiler/basicTypes/Var.lhs index 9545f48..6e481a7 100644 --- a/ghc/compiler/basicTypes/Var.lhs +++ b/ghc/compiler/basicTypes/Var.lhs @@ -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 -- 1.7.10.4