I did have terrible performance issues related to the seq being copied when stored as a temp variable in a function scope. Thinking back on it, the problem there might have been that I used let while I should have used var.
I suspected as much with the direct result assignment. (hence the comment there). I'll change it. Is there a preference between return PlayerPose() and result = PlayerPose()? AI seems to be exclusively suggesting the latter
