Faster intensity metrics with more inline C