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

Improve the efficiency of cmsg_space! #1475

Closed
wants to merge 1 commit into from

Conversation

asomers
Copy link
Member

@asomers asomers commented Jul 24, 2021

Compute the required space at compile time rather than at runtime.

Compute the required space at compile time rather than at runtime.
@asomers
Copy link
Member Author

asomers commented Jul 24, 2021

So apparently stable compilers don't support this yet. rust-lang/rust#64926 .

@asomers asomers marked this pull request as draft July 24, 2021 22:39
@Jan561 Jan561 mentioned this pull request Nov 23, 2023
3 tasks
@asomers
Copy link
Member Author

asomers commented Jan 6, 2024

Rust and libc have advanced to the point where this PR could be completed. However, as that isn't possible. As explained in #2282 , there are cases where we can't compute cmsg_space at compile time, because of subtleties involving generics. Closing this PR.

@asomers asomers closed this Jan 6, 2024
@asomers asomers deleted the const_fn branch January 6, 2024 22:51
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.

None yet

1 participant