Short answer: the 40UC and the 9UC are the same size.
The 40UC uses the same receiver as a UC9. In fact you can interchange slide, barrel, recoil springs, guide rod, and mags between the 40UCs and the 9UCs. I've done it.
But, in my experience, the 40UC is snappier in recoil than most other .40s of comparable size.