Just to check the possible improvement, I tried to repalce it with <code>descr1 = PyArray_DescrFromType(@type_num@);</code> where type_num is index number of respective dtype. 

I got all similar speedup, but in some place no improvements.