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.
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
Add virtual ref support EAR-1183 #85
Add virtual ref support EAR-1183 #85
Changes from 28 commits
9c00af0
72c1096
c8ec4cb
bcfe671
ed18dd9
f1e05c7
8ae0427
4f52f1d
6133859
7beb82c
2dccd6c
7071039
a6403d1
f35cfd4
d21231e
445cb44
427796c
9ba6607
ac9e5b5
5954991
14533e8
e9825ef
0ca2f9e
ee73ca5
f8d8ae2
89f9aee
835f5af
3bdafe1
0ef8c8f
60a14ef
c7ec230
4bd3176
fa8fde5
208d1ce
d6241f4
2f7c479
a0bb597
3f625a0
e402d42
0785687
66d361d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
I think this good at the type level but wrong semantically (which impacts on performance). The idea with this
get_chunk_reader
design is that we want to hold the reference toSelf
for as little as possible. We don't want to hold it all the time while the bytes are downloaded from S3. If we did that, nobody can write a new reference in the dataset, until we are not done downloading, which is a completely independent thing.So, the way it works is, this function does the minimum it needs to do while holding the ref, and then returns a future that will do the actual work of downloading bytes when awaited. If you look above at the materialized case, we only resolve the chunk_ref and clone a pointer, that's enough to set up the
Future
we return.You should do something similar: clone your virtual resolver and "move" it into a Feature that you return without awaiting.
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.
Yes I was being dumb, sorry. Thanks for taking the time to write it out.
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.
this name should be clearer now
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.
I guess there's a better solution with Arc but lets do that later if we need to.