Skip to content

Commit

Permalink
inline createAndTrim'
Browse files Browse the repository at this point in the history
  • Loading branch information
SkamDart committed Feb 27, 2021
1 parent ce8b0df commit 9f73055
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Data/ByteString/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ createAndTrim' l f = do
else do ps <- create l' $ \p' ->
memcpy p' (p `plusPtr` off) l'
return (ps, res)
{-# INLINE createAndTrim' #-}

-- | Wrapper of 'Foreign.ForeignPtr.mallocForeignPtrBytes' with faster implementation for GHC
--
Expand Down

0 comments on commit 9f73055

Please sign in to comment.