Not that this is a performance-critical section here, but it looks like you're going to create a new constant "my" array on every iteration of this loop.