|
|
|
|
|
by dzaima
453 days ago
|
|
> I see a fellow enjoyer of bugs ;) Yep! :) I did look at the assembly on a release build and the write method was in fact not inlined (needed to get the compiler to reason about the offset aliasing); that write method is what I called "push-back" there. I could've modified the crate to force-inline, but that's, like, effort, just to make a trivially-true assertion for one HN post. Indeed a lack of an equivalent of gcc's __attribute__((noipa)) is rather annoying with clang (there are like at least 4 issues and 2 lengthy discussions around llvm, plus one person a week ago having asked about it in the llvm discord, but so far nothing has happened); another obvious problem being trying to do benchmarking. (for reference, what I was trying to get to happen was an equivalent of https://godbolt.org/z/jobs6M95G) |
|