self.indices seems to be a constant array and it seems to be accessed rather frequently. Consider using a typed memoryview here.