To add some context to PR #6053, here are a other potential improvements to structured arrays we could make. I think with improvements like these structured arrays could become much more reliable.
Structure assignment is slow because it goes through the 'wrong' path in mapiter_set
. It uses copyswapn
when dtype_transfer
would be much faster, since copyswapn iterates through the field dict for every element. See #1984. This should be a somewhat straightforward fix.