Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Oh cool, I didn't know about `SmallVector`! That's clever.

> Either way, there are many ways you can avoid heap allocations entirely. For example, my NES emulator does not call malloc() during gameplay, at all.

Definitely. Executing searches from `regex!` expressions won't heap allocate either. :-) (Sans the return value, but maybe that can be avoided too.)



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

Search: