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 let NSCache evict section controller cache objects as it causes an infinite feed load loop #775
Conversation
…nite feed load loop
Current coverage is 21.71%
|
…ne invisible sections rather than remove all objects
So here's what was happening: If the user has more than Since |
self.reverseLookup = | ||
[NSMapTable mapTableWithKeyOptions:NSMapTableWeakMemory | NSMapTableObjectPointerPersonality | ||
valueOptions:NSMapTableWeakMemory]; | ||
self.reverseLookup = [[NSMutableDictionary alloc] init]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we no longer need this to be weak? Is it expected that the new behavior will take care of cleaning up all the objects in the reverse lookup?
Also, is it ok that the section controllers don't conform to NSCopying - will the dictionary be able to find them based on pointer equality?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind… you are now using the hash… so that we do't have to deal with the section controllers themselves
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New question… do we need to implement the hash method for the controllers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new expected behavior is that the view controller owns the cache and cleans it. The hash method on NSObject seems to suffice.
👍 Waiting for travis… its being weird today |
Merging and will let jerkins do the testing |
No description provided.