News for hackers. Stuff that matters.
Re:Effective Rust by masklinn on Thursday June 15, 2023 @09:12AM (#36339960)
> Needlessly allocates a `Vec` if `self.payload` is `Some`.

Vec is documented not to allocate if empty (unless created with a set capacity). So all the code does is store 3 u64 on the stack.

There are no comments on this comment yet.