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

Add reduce argument to descendants and ancestors #44

Open
VEZY opened this issue May 5, 2023 · 0 comments
Open

Add reduce argument to descendants and ancestors #44

VEZY opened this issue May 5, 2023 · 0 comments
Labels
enhancement New feature or request performance

Comments

@VEZY
Copy link
Owner

VEZY commented May 5, 2023

Add a reduce argument to those functions, which would take a function that is used to reduce the results from the ancestors before returning the value. This is not that useful for the non-mutating functions, but could be neat to have for the mutating one (descendants!). This way the cache would only take one value instead of the full list of values, which largely reduce the memory usage.

@VEZY VEZY added enhancement New feature or request performance labels May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance
Projects
None yet
Development

No branches or pull requests

1 participant