5 ms·
Checking for null values from malloc does not create serious overhead, it creates minor overhead for your branch predictor, unless for some reason malloc freque
by fleitz 14y ago
Checking for null values from malloc does not create serious overhead, it creates minor overhead for your branch predictor, unless for some reason malloc frequently returns null.
A single context switch back to the kernel generates far more load than the null checks could ever hope to accomplish.
- joe_the_user 14y agoI mean all those checks create considerable mental overhead from code-bloat.