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

Avoid copying when deriving a node to simply access a member #100

Open
arximboldi opened this issue Feb 7, 2021 · 0 comments
Open

Avoid copying when deriving a node to simply access a member #100

arximboldi opened this issue Feb 7, 2021 · 0 comments

Comments

@arximboldi
Copy link
Owner

Reader nodes do a significant amount of copying. This assumes that copying is light-weight. This is normally the case when using immer. However, there are situations where copying could be avoided. For example, a derived node could keep a reference to the current data, instead of a copy, when the lens or transducer is simply "accessing" a member.

@arximboldi arximboldi changed the title Avoid copying Avoid copying when deriving a node to simply access a member Feb 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant