Skip to content

repo/style: remove superfluous #[inline]s - #412

Merged
npry merged 1 commit into
mainfrom
npry/style.remove-inline
Sep 16, 2026
Merged

npry merged 1 commit into
mainfrom
npry/style.remove-inline

Conversation

@npry

@npry npry commented Sep 15, 2026

Copy link
Copy Markdown
Member

Our general style has been to avoid annotating with #[inline] because empirically, the compiler makes good choices without the hint and largely ignores it.

Validated that the ts_bart and ts_bitset benchmarks aren't adversely affected: some noise, but no obvious net effect (some better, some worse, +/- low single digit percents mostly).

Our general style has been to avoid annotating with `#[inline]` because
empirically, the compiler makes good choices without the hint and
largely ignores it.

Validated that the `ts_bart` and `ts_bitset` benchmarks aren't adversely
affected: some noise, but largely no effect.

Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: I859871eedde095eea04411f29d02f8aa6a6a6964

@dylan-tailscale dylan-tailscale left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@npry
npry merged commit 4092c06 into main Sep 16, 2026
23 checks passed
@npry
npry deleted the npry/style.remove-inline branch September 16, 2026 02:16
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