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:
8288caf
)
[project @ 2002-05-03 13:09:47 by simonmar]
author
simonmar
<unknown>
Fri, 3 May 2002 13:09:47 +0000
(13:09 +0000)
committer
simonmar
<unknown>
Fri, 3 May 2002 13:09:47 +0000
(13:09 +0000)
In the get method for FastString, do the dictionary lookup strictly
(speeds things up and reduces the residency by a few k).
ghc/compiler/utils/Binary.hs
patch
|
blob
|
history
diff --git
a/ghc/compiler/utils/Binary.hs
b/ghc/compiler/utils/Binary.hs
index
764f918
..
4bef25a
100644
(file)
--- a/
ghc/compiler/utils/Binary.hs
+++ b/
ghc/compiler/utils/Binary.hs
@@
-688,4
+688,4
@@
instance Binary FastString where
get bh = do
j <- get bh
- case getUserData bh of (_, _, _, arr) -> return (arr ! j)
+ case getUserData bh of (_, _, _, arr) -> return $! (arr ! j)