3 ms·
I'm not sure what your system's malloc looks like, but I assure you it's probably full of branches. One more isn't going to make a difference. If you are worrie
by dmm 17y ago
I'm not sure what your system's malloc looks like, but I assure you it's probably full of branches. One more isn't going to make a difference. If you are worried about branches causing pipeline stalls you aren't allocating memory.
- tedunangst 17y agoI was responding to the part at the end where it was implied that heavily pipelined architectures aren't subject to stalls (what else does especially in italics mean?), not the idea that checking for NULL is a performance hit.
- dmm 17y agoAh I totally misread your comment. Sorry about that. Branches can definitely kill performance in heavily pipelined archs.