Skip to content

Conversation

@ltratt
Copy link
Contributor

@ltratt ltratt commented May 23, 2025

The common case, by far, is size == 0 so this function was being outlined mostly for no good reason. This commit splits it into two: the common case can be inlined by yk, with the uncommon case leading to a call.

This leads to a small, but just about measurable speed up, on some benchmarks (including ~3% on Richards).

The common case, by far, is `size == 0` so this function was being
outlined mostly for no good reason. This commit splits it into two: the
common case can be inlined by yk, with the uncommon case leading to a
`call`.

This leads to a small, but just about measurable speed up, on some
benchmarks (including ~3% on Richards).
@ptersilie
Copy link
Contributor

Nice-la.

@ptersilie ptersilie added this pull request to the merge queue May 23, 2025
Merged via the queue into ykjit:main with commit c5acfba May 23, 2025
2 checks passed
@ltratt ltratt deleted the split_setnodevector branch May 30, 2025 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants