4 ms·
> Malloc has the exact same structure: it's hella fast until you run out of RAM and it returns an allocation failure. Doesn't that depend on the allocator tho
by alfiedotwtf 4y ago
> Malloc has the exact same structure: it's hella fast until you run out of RAM and it returns an allocation failure.
Doesn't that depend on the allocator though? Some malloc()s will perform some cleanup depending on their internal structure, which is not deterministic
- lisper 4y agoSure. But in general both malloc and cons are pretty zippy most of the time.