projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1c3d11
)
[project @ 2001-12-06 17:33:30 by simonmar]
author
simonmar
<unknown>
Thu, 6 Dec 2001 17:33:30 +0000
(17:33 +0000)
committer
simonmar
<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
patch
|
blob
|
history
diff --git
a/ghc/compiler/basicTypes/Var.lhs
b/ghc/compiler/basicTypes/Var.lhs
index
9545f48
..
6e481a7
100644
(file)
--- 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