Skip to content
  • Ben Gamari's avatar
    Speed up compilation of profiling stubs · a8da0de2
    Ben Gamari authored and Ben Gamari's avatar Ben Gamari committed
    Here we encode the cost centre list as static data. This means that the
    initialization stubs are small functions which should be easy for GCC to
    compile, even with optimization.
    
    Fixes #7960.
    
    Test Plan: Test profiling
    
    Reviewers: austin, erikd, simonmar
    
    Reviewed By: simonmar
    
    Subscribers: rwbarton, thomie
    
    GHC Trac Issues: #7960
    
    Differential Revision: https://phabricator.haskell.org/D3853
    a8da0de2