Skip to content

Remove INLINE pragma from generalCategory #130

@mpickering

Description

@mpickering

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

No one assigned

    Labels

    approvedApproved by CLC votebase-4.18Implemented in base-4.18 (GHC 9.6)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions