Commits

Bryan O'Sullivan  committed f4099b7

Tiny performance improvement via strictness

  • Participants
  • Parent commits 5c235e5

Comments (0)

Files changed (1)

File Data/Text/Fusion.hs

 stream :: Text -> Stream Char
 stream (Text arr off len) = Stream next off (maxSize len)
     where
-      end = off+len
-      {-# INLINE next #-}
+      !end = off+len
       next !i
           | i >= end                   = Done
           | n >= 0xD800 && n <= 0xDBFF = Yield (U16.chr2 n n2) (i + 2)