-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy On Write implementation #36
Labels
enhancement
New feature or request
Comments
Should I try to implement it or are you working on it? |
@KhalidAl-otaibi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it is easier for Matft to implement COW than I expected.
Because MfArray has a data class, which is MfData, all we have to do are 2 points. First add “mutating” keyword into conversion method and subscript function. Second check the _isView property in those “mutating” function and then replace the referenced MfData into the new one if the _isView is true.
The text was updated successfully, but these errors were encountered: