summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2019-10-21 17:39:00 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2019-10-22 08:34:51 +0100
commitf4f89cb5fffd44163d689bc14c9fc1a3d2b8bbee (patch)
tree1ca2800b00372b2939853eaf652b27a7c5d57528 /compiler
parent2d8956784ec236ad817d06cb81a01b529d0aa9ae (diff)
downloadhaskell-f4f89cb5fffd44163d689bc14c9fc1a3d2b8bbee.tar.gz
less allocation
Diffstat (limited to 'compiler')
-rw-r--r--compiler/utils/FastString.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/utils/FastString.hs b/compiler/utils/FastString.hs
index eba59fd064..08155a30b6 100644
--- a/compiler/utils/FastString.hs
+++ b/compiler/utils/FastString.hs
@@ -232,9 +232,9 @@ instance NFData FastString where
rnf fs = seq fs ()
cmpFS :: FastString -> FastString -> Ordering
-cmpFS f1@(FastString u1 _ _) f2@(FastString u2 _ _) =
+cmpFS f1@(FastString u1 sbs1 _) f2@(FastString u2 sbs2 _) =
if u1 == u2 then EQ else
- compare (bytesFS f1) (bytesFS f2)
+ compare sbs1 sbs2
-- -----------------------------------------------------------------------------
-- Construction