Skip to content
Snippets Groups Projects
Commit 7cf5ba3d authored by Michal Terepeta's avatar Michal Terepeta Committed by Marge Bot
Browse files

Improve performance of newSmallArray#


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>
parent 39282422
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment