3 ms·
The CPU is so much faster than memory that the time needed for checking if malloc succeeded is basically unmeasurable. I assume that after you malloc that you'
by ars 17y ago
The CPU is so much faster than memory that the time needed for checking if malloc succeeded is basically unmeasurable.
I assume that after you malloc that you'll put something in it. Copying that data to memory takes so much longer than checking if the return value == NULL that it's a joke to care.
BTW The info was interesting, but I don't care for the style of writing.