-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
approvedApproved by CLC voteApproved by CLC votebase-4.18Implemented in base-4.18 (GHC 9.6)Implemented in base-4.18 (GHC 9.6)
Description
In module GHC.Unicode.Internal.Char.UnicodeData.GeneralCategory:
generalCategory contains a huge literal string but is marked INLINE, this will duplicate the string into any use site of generalCategory. In particular generalCategory
is used in functions like isSpace
and the literal gets inlined into this function which makes it massive.
My recommendation: Extract the literal into a top-level string (marked NOINLINE) and remove INLINE
pragma from `generalCategory.
https://gitlab.haskell.org/ghc/ghc/-/merge_requests/9958/
Metadata
Metadata
Assignees
Labels
approvedApproved by CLC voteApproved by CLC votebase-4.18Implemented in base-4.18 (GHC 9.6)Implemented in base-4.18 (GHC 9.6)