-
Notifications
You must be signed in to change notification settings - Fork 184
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
DryDataProvider
for baked providers
#5211
Conversation
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.
That's a very absolute statement.
Well they're queryable like this.
I don't want to the API surface of the baked providers to change depending on |
The implementation is also required to use forking providers between baked and a provider where |
There's also the question about whether we want DryDataProvider to potentially use a different trie. I think you made an argument that such behavior, making |
At some point I also remember you saying that you didn't want people using I hear you about consistency with the blanket impls we have on BlobProvider and FsDataProvider. I think the differences with baked provider are:
Why not just export separate macros like |
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 did this as a concession to you because you worry about source code size. I'm very happy to impl for specific markers.
I don't see how it locks us in. It's a correct implementation. |
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.
BakedProvider is not blanked impld. It is impld for specific markers
I did this as a concession to you because you worry about source code size. I'm very happy to impl for specific markers.
I worry about code size when we can reduce it without causing side-effects (option 3 in #5230 for instance)
We have been discussing different impls for Baked DryDataProvider in the other PR that might be more efficient, and this PR locks us into one particular impl
I don't see how it locks us in. It's a correct implementation.
It locks us out of having marker-specific impls that do different things such as having a base languages supplement trie. But, I think your position is that impls where dry_load and load return different locales (even if they return the same success status) is off the table?
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.
My concerns haven't changed since my last review
Should we get more feedback from others or discuss in a WG call?
I unimplemented it for our concrete data providers, I hope this removes the point of contention. |
This adds DryDataProvider impls for concrete markers in a way that users can opt-in via the macro call site. This is my preferred approach. |
The code size impact seems smallish relative to the overall code size of these baked data files. |
No description provided.