Skip to content
  • Peter Wortmann's avatar
    Improve wrapTicks performance with lots of redundant source notes · 29122312
    Peter Wortmann authored and Ben Gamari's avatar Ben Gamari committed
    The old version had O(n^3) performance for n non-overlapping source
    notes and let floats each, which is exactly what happens with -g if we
    compile a list literal of length n.
    
    The idea here is simply to establish early which source notes will
    actually survive (e.g. use a left fold). The new code should be O(n) for
    list literals.
    
    Reviewers: austin, dfeuer, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D3037
    
    GHC Trac Issues: #11095
    29122312