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

Conversation

appleguy
Copy link
Contributor

@knopp, please do take a look! Is there any more efficient way you can think to do this? I'm particularly bummed about creating all the index paths - I think we could make an alternate codepath that iterates over the nodes themselves, keeping a local integer of section and item number, doing something like the multidimensional helper function does internally by building up the index path by index - but not having to create a full array of them. This might not help efficiency much, though it would also eliminate accessing the nodes out of the 2D array.

@knopp
Copy link
Contributor

knopp commented Jan 25, 2016

I hear you, but in the end, you still need to check
fetchDataIndexPaths, displayIndexPaths and visibleIndexPaths, and you need
NSIndexPaths for that, don’t you? And you need to do it for every single
item. But with separate code path you could maybe at least
avoid NSMutableOrderedSet overhead, which miight not be small if you have
thousands of index paths.

-Matej

On Mon, Jan 25, 2016 at 3:44 AM, appleguy notifications@github.com wrote:

@knopp https://github.com/knopp, please do take a look! Is there any
more efficient way you can think to do this? I'm particularly bummed about
creating all the index paths - I think we could make an alternate codepath
that iterates over the nodes themselves, keeping a local integer of section
and item number, doing something like the multidimensional helper function
does internally by building up the index path by index - but not having to
create a full array of them. This might not help efficiency much, though it

would also eliminate accessing the nodes out of the 2D array.

You can view, comment on, or merge this pull request online at:

#1105
Commit Summary

  • [ASRangeControllerBeta] Scan all nodes after edit operations.

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#1105.

appleguy added a commit that referenced this pull request Jan 25, 2016
[ASRangeControllerBeta] Scan all nodes after edit operations.
@appleguy appleguy merged commit 1dd6cef into master Jan 25, 2016
@appleguy appleguy deleted the RangeControlAllNodes branch January 25, 2016 21:51
yxztj pushed a commit to iftechio/AsyncDisplayKit that referenced this pull request Sep 29, 2018
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