nix icon indicating copy to clipboard operation
nix copied to clipboard

Improve the efficiency of cmsg_space!

Open asomers opened this issue 4 years ago • 1 comments

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

asomers avatar Jul 24 '21 21:07 asomers

So apparently stable compilers don't support this yet. https://github.com/rust-lang/rust/issues/64926 .

asomers avatar Jul 24 '21 22:07 asomers

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 avatar Jan 06 '24 22:01 asomers