Skip to content

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