mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
don't use ByteString.copy in Data.Binary this makes it far too slow
This commit is contained in:
@@ -701,7 +701,7 @@ instance (Binary a, Binary b) => Binary (Either a b) where
|
||||
instance Binary B.ByteString where
|
||||
put bs = do put (B.length bs)
|
||||
putByteString bs
|
||||
get = liftM B.copy (get >>= getByteString)
|
||||
get = get >>= getByteString
|
||||
|
||||
--
|
||||
-- Using old versions of fps, this is a type synonym, and non portable
|
||||
|
||||
Reference in New Issue
Block a user