Add a couple of useful/TODO comments

This commit is contained in:
Harendra Kumar 2024-01-25 00:37:27 +05:30
parent 66507ffa99
commit 8adebe0c02
2 changed files with 11 additions and 1 deletions

View File

@ -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.

View File

@ -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