Hacker News new | ask | show | jobs
by g15jv2dp 686 days ago
It's still going to dynamically allocate its memory in there, isn't it? This is a slow operation.
1 comments

Memory allocation isn’t that slow (in fact all the ram is SRAM which is typically quite fast), it’s just that you only have 256k-1M RAM in total. This means that any time you’re saving later by trying to fill space now ends up getting wasted when that memory needs to be reclaimed.