ref: https://docs.julialang.org/en/v1/manual/performance-tips/#Copying-data-is-not-always-bad <!-- Edit the body of your new issue then click the ✓ "Create Issue" button in the top right of the editor. The first line will be the issue title. Assignees and Labels follow after a blank line. Leave an empty line before beginning the body of the issue. -->