Hacker News new | past | comments | ask | show | jobs | submit login

> 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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: