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

Simplification and optimization opportunity in useLoadData #41

Closed
baker-ling opened this issue Jan 10, 2025 · 0 comments · Fixed by #40
Closed

Simplification and optimization opportunity in useLoadData #41

baker-ling opened this issue Jan 10, 2025 · 0 comments · Fixed by #40

Comments

@baker-ling
Copy link
Contributor

I noticed that there are a couple of place where code can be simplified in useLoadData where the map-reduce pattern is currently used and .some() or .every() would suffice.

.some() and .every() should offer a time optimization with early termination and a space optimization by not creating a new array like .map() does.

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

Successfully merging a pull request may close this issue.

1 participant