Some time ago, I've mentioned that the call overhead in the implementation of HPy_Type was crucial (in CPython ABI mode) for the NumPy/HPy demo. The same applies to HPy_Is. Therefore, I'm essentially inlining the implementation into the appropriate API functions.
I also did a little improvement in HPy_GetItem_i to avoid unnecessary allocation of long objects.
Some time ago, I've mentioned that the call overhead in the implementation of
HPy_Type
was crucial (in CPython ABI mode) for the NumPy/HPy demo. The same applies toHPy_Is
. Therefore, I'm essentially inlining the implementation into the appropriate API functions. I also did a little improvement inHPy_GetItem_i
to avoid unnecessary allocation of long objects.