Skip to content
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

Open
jjjkkkjjj opened this issue Oct 21, 2022 · 2 comments
Open

Copy On Write implementation #36

jjjkkkjjj opened this issue Oct 21, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@jjjkkkjjj
Copy link
Owner

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.

@jjjkkkjjj jjjkkkjjj added the enhancement New feature or request label Oct 21, 2022
@KhalidAl-otaibi
Copy link

Should I try to implement it or are you working on it?

@jjjkkkjjj
Copy link
Owner Author

@KhalidAl-otaibi
Could you try this if possible?
I’d like to do this, but I’ll be busy until next month due to my work :(
Of course, I’ll help you after next month or I’ll work on this if you can wait until next month :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants