[project @ 2002-05-03 13:09:47 by simonmar]
authorsimonmar <unknown>
Fri, 3 May 2002 13:09:47 +0000 (13:09 +0000)
committersimonmar <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

index 764f918..4bef25a 100644 (file)
@@ -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)