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

since it's std::memset, the compiler could theoretically inline it or have a small-count path that uses vector intrinsics



It could, but for a case without a known count it doesn't really make sense to do that. (I honestly found the concern to be kind of strange for that reason, honestly.)


A memset tail call would be less code size than the loop, so it's still worth it even for cold code.




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

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

Search: