mirror of
https://github.com/ilyakooo0/streamly.git
synced 2024-09-17 11:37:20 +03:00
Add a couple of useful/TODO comments
This commit is contained in:
parent
66507ffa99
commit
8adebe0c02
@ -196,6 +196,12 @@ newBytesAs Pinned = pinnedNew
|
||||
-- Copying
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
-- Note: Array copy is more efficient than streaming copy.
|
||||
-- CopyMutableByteArray# translates to genMemcpy in GHC/CmmToAsm/X86/CodeGen.hs
|
||||
-- glibc memcpy copies bytes/words/pages - unrolls the loops:
|
||||
-- https://github.com/bminor/glibc/blob/4290aed05135ae4c0272006442d147f2155e70d7/string/memcpy.c
|
||||
-- https://github.com/bminor/glibc/blob/4290aed05135ae4c0272006442d147f2155e70d7/string/wordcopy.c
|
||||
|
||||
-- | Put a sub range of a source array into a subrange of a destination array.
|
||||
-- This is not safe as it does not check the bounds of neither the src array
|
||||
-- nor the destination array.
|
||||
|
@ -7,7 +7,11 @@
|
||||
-- Maintainer : streamly@composewell.com
|
||||
-- Stability : experimental
|
||||
-- Portability : GHC
|
||||
--
|
||||
|
||||
-- XXX Instead of applying the product constructor in one go can we apply it
|
||||
-- one at a time in case of too many arguments, compiler may not have to save
|
||||
-- them in local vars.
|
||||
|
||||
module Streamly.Internal.Data.Serialize.TH
|
||||
(
|
||||
-- Deriving
|
||||
|
Loading…
Reference in New Issue
Block a user