Skip to content

chore: Adjust #[inline] annotations#799

Merged
Veykril merged 1 commit intosalsa-rs:masterfrom
Veykril:veykril/push-kuyvqkxovmml
Apr 17, 2025
Merged

chore: Adjust #[inline] annotations#799
Veykril merged 1 commit intosalsa-rs:masterfrom
Veykril:veykril/push-kuyvqkxovmml

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Apr 17, 2025

A lot of attached calls/definitions seem to hover around the default inlining limit making the codspeed reports difficult to interpret at times, generally these should benefit from being inlined either way as the "attached" code paths are quite hot.

Aside from those, this PR touches up on a lot of other call sites for instructing inlining behavior, as just changing the attached calls has a negative impact overall on the remainder of the inlining behaviors. These additional explicit annotations bring things back in line.

@netlify
Copy link

netlify bot commented Apr 17, 2025

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit baf8945
🔍 Latest deploy log https://app.netlify.com/sites/salsa-rs/deploys/68012a6453d8910008b5a926

@codspeed-hq
Copy link

codspeed-hq bot commented Apr 17, 2025

CodSpeed Performance Report

Merging #799 will improve performances by 5.43%

Comparing Veykril:veykril/push-kuyvqkxovmml (baf8945) with master (189e619)

Summary

⚡ 1 improvements
✅ 11 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
amortized[SupertypeInput] 4.2 µs 4 µs +5.43%

@Veykril Veykril force-pushed the veykril/push-kuyvqkxovmml branch 6 times, most recently from 86125d0 to 3f2b148 Compare April 17, 2025 15:47
@Veykril Veykril changed the title chore: #[inline] some things chore: Adjust #[inline] annotations Apr 17, 2025
@Veykril Veykril force-pushed the veykril/push-kuyvqkxovmml branch from 3f2b148 to 942d501 Compare April 17, 2025 16:13
@Veykril Veykril force-pushed the veykril/push-kuyvqkxovmml branch from 942d501 to baf8945 Compare April 17, 2025 16:20
self.database_key_index(id),
))
{
if !memo.provisional_retry(db, zalsa, self.database_key_index(id)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

provisional_retry itself already calls may_be_provisional()

@Veykril
Copy link
Member Author

Veykril commented Apr 17, 2025

I'll self-approve this, as this doesn't change behavior and hopefully makes CI benches more reliable.

@Veykril Veykril enabled auto-merge April 17, 2025 16:26
@Veykril Veykril added this pull request to the merge queue Apr 17, 2025
Merged via the queue into salsa-rs:master with commit ab7ecb4 Apr 17, 2025
11 checks passed
@Veykril Veykril deleted the veykril/push-kuyvqkxovmml branch April 17, 2025 16:39
@github-actions github-actions bot mentioned this pull request Apr 17, 2025
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.

1 participant