Skip to content
  • Michal Terepeta's avatar
    Improve performance of newSmallArray# · 7cf5ba3d
    Michal Terepeta authored and Marge Bot's avatar Marge Bot committed
    
    
    This:
    - Hoists part of the condition outside of the initialization loop in
      `stg_newSmallArrayzh`.
    - Annotates one of the unlikely branches as unlikely, also in
      `stg_newSmallArrayzh`.
    - Adds a couple of annotations to `allocateMightFail` indicating which
      branches are likely to be taken.
    
    Together this gives about 5% improvement.
    
    Signed-off-by: default avatarMichal Terepeta <michal.terepeta@gmail.com>
    7cf5ba3d