Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Conversation

rcancro
Copy link
Contributor

@rcancro rcancro commented Jun 7, 2016

Converted the backing store of children to a std::vector. Subclass now have defined indexes instead of string keys to add children.

@ghost ghost added the CLA Signed label Jun 7, 2016
@levi
Copy link
Contributor

levi commented Jun 7, 2016

Looks good, @rcancro. Curious of the use of a vector over a map?

@rcancro
Copy link
Contributor Author

rcancro commented Jun 7, 2016

No real reason. @appleguy said that the NSDictionary I was using was showing up in profiling, so I had arrays on the brain. Though I do worry about returning children from a map. Even with keys of 0,1,2,... do we know that the children will be returned in their index order?

rcancro added 2 commits June 21, 2016 14:22
Converted the backing store of children to a std::vector. Subclass now have defined indexes instead of string keys to add children.
@maicki
Copy link
Contributor

maicki commented Jun 21, 2016

LGTM!

@levi
Copy link
Contributor

levi commented Jun 22, 2016

👍🏽

@maicki maicki changed the title [ASLayoutSpec.mm] Remove use of dictionary to hold children [ASLayoutSpec] Remove use of dictionary to hold children Jun 22, 2016
@maicki maicki merged commit 2375e31 into facebookarchive:master Jun 23, 2016
aimalygin pushed a commit to aimalygin/AsyncDisplayKit that referenced this pull request Sep 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants