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 thread index through traverseAllChildren #3651

Merged
merged 1 commit into from
May 14, 2015

Conversation

sophiebits
Copy link
Collaborator

I'm not super attached to this, but this feels cleaner to me. Might even be faster since flattenChildren doesn't use the index. Probably no change though.

I'm not super attached to this, but this feels cleaner to me. Might even be faster since flattenChildren doesn't use the index. Probably no change though.
@sebmarkbage
Copy link
Collaborator

Seems like this whole first class function paradigm is making this slower and more complicated than it needs to be if we were just willing to duplicate a little code.

@sophiebits
Copy link
Collaborator Author

You mean write different variants of traverseAllChildren with the different callbacks inlined?

sophiebits added a commit that referenced this pull request May 14, 2015
Don't thread index through traverseAllChildren
@sophiebits sophiebits merged commit 5c7b4a0 into facebook:master May 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants