[Git][ghc/ghc][wip/faster-linkBCO] 2 commits: ghci: use SmallArray directly in ResolvedBCO
Cheng Shao pushed to branch wip/faster-linkBCO at Glasgow Haskell Compiler / GHC Commits: 1433ee49 by Cheng Shao at 2026-03-21T01:15:31+00:00 ghci: use SmallArray directly in ResolvedBCO This patch makes ghci use `SmallArray` directly in `ResolvedBCO` when applicable, making the memory representation more compact and reducing marshaling overhead. Closes #27058. - - - - - e57d087b by Cheng Shao at 2026-03-21T01:40:59+00:00 compiler: use SmallArray directly in UnlinkedBCO This patch makes the compiler use `SmallArray` directly in `UnlinkedBCO` when applicable, making the memory representation more compact and reducing marshaling overhead. - - - - - 1 changed file: - compiler/GHC/ByteCode/Types.hs Changes: ===================================== compiler/GHC/ByteCode/Types.hs ===================================== @@ -251,8 +251,8 @@ data UnlinkedBCO unlinkedBCOArity :: {-# UNPACK #-} !Int, unlinkedBCOInstrs :: !(BCOByteArray Word16), -- insns unlinkedBCOBitmap :: !(BCOByteArray Word), -- bitmap - unlinkedBCOLits :: !(SmallArray BCONPtr), -- non-ptrs - unlinkedBCOPtrs :: !(SmallArray BCOPtr) -- ptrs + unlinkedBCOLits :: !(SmallArray BCONPtr), -- non-ptrs + unlinkedBCOPtrs :: !(SmallArray BCOPtr) -- ptrs } instance NFData UnlinkedBCO where View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/8a2ee362943e56dd8aa79c67bbbfe96... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/8a2ee362943e56dd8aa79c67bbbfe96... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Cheng Shao (@TerrorJack)