Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add #[inline] attribute to the inner functions #596

Merged
merged 6 commits into from
Feb 1, 2025
Merged

Conversation

newpavlov
Copy link
Member

Closes #592

@newpavlov newpavlov requested a review from josephlr January 29, 2025 23:25
Copy link
Member

@josephlr josephlr left a comment

Choose a reason for hiding this comment

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

To avoid increasing compile times for users, we should probably only mark implementations as #[inline] if they really are just thin wrappers around a system function.

src/backends/linux_android_with_fallback.rs Show resolved Hide resolved
src/backends/netbsd.rs Show resolved Hide resolved
src/backends/wasm_js.rs Outdated Show resolved Hide resolved
@newpavlov newpavlov requested a review from josephlr January 31, 2025 10:58
Copy link
Member

@josephlr josephlr left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

Choose a reason for hiding this comment

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

Does the cold function in this file need similar treatment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably, yes.

@newpavlov newpavlov merged commit ce3b017 into master Feb 1, 2025
58 checks passed
@newpavlov newpavlov deleted the inline_attr branch February 1, 2025 22:04
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.

Infallible nature of windows 10 RNG isn't propagated to user during runtime
2 participants