Skip to content

p-token: Add compiler hints#136

Merged
febo merged 1 commit intomainfrom
febo/compiler-hints
Mar 4, 2026
Merged

p-token: Add compiler hints#136
febo merged 1 commit intomainfrom
febo/compiler-hints

Conversation

@febo
Copy link
Contributor

@febo febo commented Mar 4, 2026

Problem

The upcoming platform-tools update comes with Rust 1.89.0. The compiler in that version seems to require more hints to optimize the "hot" path in a few instructions.

Solution

Use likely/unlikely compiler hints in a few more places.

cc: @LucasSte @nagisa

Copy link
Contributor

@nagisa nagisa left a comment

Choose a reason for hiding this comment

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

I am generally wary of likely/unlikely cause while they could be doing good in a particular release, they can easily inhibit an optimization in the next. Its a long-standing and well known issue with these intrinsics.

But that wariness is pretty inactionable so :stamp:

@febo febo merged commit 35b79ea into main Mar 4, 2026
27 checks passed
@febo febo deleted the febo/compiler-hints branch March 4, 2026 12:44
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.

3 participants