• Michal Terepeta's avatar
    Improve performance of newSmallArray# · 7cf5ba3d
    Michal Terepeta authored
    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: Michal Terepeta's avatarMichal Terepeta <michal.terepeta@gmail.com>
    7cf5ba3d
Storage.c 47.1 KB