Skip to content

Commit c63dd72

Browse files
authored
Remove useless INLINE on compareLength for lazy bytestrings. (#705)
The function is self-recursive so will never inline. I also don't see the benefit of the INLINE pragma in the first place. Fixes #704.
1 parent aca65b3 commit c63dd72

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Data/ByteString/Lazy.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,6 @@ compareLength :: ByteString -> Int64 -> Ordering
584584
compareLength _ toCmp | toCmp < 0 = GT
585585
compareLength Empty toCmp = compare 0 toCmp
586586
compareLength (Chunk c cs) toCmp = compareLength cs (toCmp - fromIntegral (S.length c))
587-
{-# INLINE compareLength #-}
588587

589588
{-# RULES
590589
"ByteString.Lazy length/compareN -> compareLength" [~1] forall t n.

0 commit comments

Comments
 (0)