This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Hi, I am curious if there is a way to create a MutablePrimitiveArray from a section of values from another MutablePrimitiveArray? They way I understand it, I will always incur a copy cost? There would be no way to have a zero copy in this situation? |
Beta Was this translation helpful? Give feedback.
Answered by
sundy-li
Dec 2, 2022
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Arty-Maly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MutablePrimitiveArray
need to ownVec<T>
, so if you want to create it from another MutablePrimitiveArray, you need to move the memory otherwise it will have copy cost.