Skip to content
  • Ben Gamari's avatar
    OccName: Avoid re-encoding derived OccNames · eb3d6595
    Ben Gamari authored and Ben Gamari's avatar Ben Gamari committed
    Previously we would form derived OccNames by first decoding the name
    being derived from, manipulating it in [Char] form, and then
    re-encoding. This is all very wasteful as we essentially always just
    want to concatenate. Instead we now take care to form the final name
    with only one concatFS.
    
    Test Plan: Validate, examing compiler allocations
    
    Reviewers: simonpj, austin
    
    Reviewed By: simonpj
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2387
    
    GHC Trac Issues: #12357
    eb3d6595