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

Don't store leaves dict #18

Closed
mdbartos opened this issue Nov 13, 2018 · 1 comment
Closed

Don't store leaves dict #18

mdbartos opened this issue Nov 13, 2018 · 1 comment

Comments

@mdbartos
Copy link
Member

Storing leaves in a dict can be troublesome (need to update it every time tree structure is changed). Could probably achieve similar performance using a function.

@mdbartos
Copy link
Member Author

Storing is probably unavoidable. But it may be possible to subclass dict so that leaves are protected from unintended writes.

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

No branches or pull requests

1 participant