Is your feature request related to a problem or challenge? Please describe what you are trying to do.
This come up from @alamb comments from #7935 (comment)
As a follow on PR we can consider avoiding this extra splice somehow (by preallocating the size or something). Future work though
Describe the solution you'd like
preallocating the size or something to avoid the splice
Describe alternatives you've considered
Additional context