Get firstObject/lastObject notifications only when cached#14493
Merged
stefanpenner merged 1 commit intomasterfrom Oct 20, 2016
Merged
Get firstObject/lastObject notifications only when cached#14493stefanpenner merged 1 commit intomasterfrom
stefanpenner merged 1 commit intomasterfrom
Conversation
Member
Author
|
@krisselden / @rwjblue should this ride canary or be a |
b9460b4 to
c480beb
Compare
Member
|
I think we can go with |
1074c9f to
3c4c08f
Compare
Member
Author
|
going to sleep, i'll fix tests and address feedback when I wake up. |
3c4c08f to
4fa699a
Compare
…when cached Basically the contents of https://gist.github.com/mmun/877bad33158578a8609b
4fa699a to
03b9dbc
Compare
Member
Author
|
@krisselden should we:
|
Contributor
|
@stefanpenner it is currently already more like the set() strategy, it was just doing it before firstObject and lastObject were ever consumed which is what this is addressing. I lean toward landing it as is and proposing considering the other changes after |
Member
Author
|
@krisselden sounds good, we can always switch to the more CP style by checking affected array offsets in the future. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Basically the contents of https://gist.github.com/mmun/877bad33158578a8609b
[fixes #5591]
changed:
to:
this lets us skip needing to re-fetch the cache (we just did above), but not leak the sentinel
UNDEFINEDvalue (which is why we have the methods in the first place.objectAt(array, index)andthistoarraylengthlazy unlesslastObjectneeds accessing