Very good catch! It does remain an object, so assigning to a new typed array gives a 15% speedup (~9x faster than pure Python now).