-
Notifications
You must be signed in to change notification settings - Fork 0
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 spans support to CodedInputStream #8
Add spans support to CodedInputStream #8
Conversation
@@ -6,7 +6,7 @@ | |||
<AssemblyTitle>Google Protocol Buffers</AssemblyTitle> | |||
<VersionPrefix>3.6.0</VersionPrefix> | |||
<Authors>Google Inc.</Authors> | |||
<TargetFrameworks>netstandard1.0;net45</TargetFrameworks> |
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.
Fixed in #9. You can rebase and the diff should disappear from this this PR (btw, I think fixes like this should be in a separate commit - then it's easier to remove then once it has been fixed in the target branch).
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.
Done
Exposed span-variants of CodedInputStream APIs Added possibility to create CodedInputStream from ReadOnlySequence and ReadOnlySpan Exposed Wrapped-version of Read APIs for future use by an updated Codegen Exposed PushLimit/PopLimit/ReachedLimit/BeginReadNested/EndReadNested to allow more efficient inlining parsing loops by code generator Changed ReadFloat to use Int32BitsToSingle approach
Resolved ambiguity in documentation crefs
a54ed37
to
7907c6d
Compare
@mkosieradzki I still have this PR on my backlog, but i got busy with fixing some unrelated gRPC C# issues recently. Sorry for delay! |
as a side note, once concern I still have with this PR (and I have trouble coming up with a better idea) is |
CC @davidfowl in case you have opinions. |
Just curious: Is this issue still actively considered? |
I think the approach here is solid. Do these methods all need to be exposed publicly? |
@davidfowl: Yes, I'd expect that they need to be public as they'll need to be called from generated code. Unfortunately I don't have time to review this carefully right now, due to other commitments. |
@davidfowl yes, they need to public which is the reason why I am hesitant with API as is (for internal API the same approach would be perfectly fine). |
This PR looked useful. Is it shelved? |
@prat0088 the plan is for fast Span-based parsing to land in one form or another (design discussion are in progress), but there is currently no ETA. Another take on the Span-based parsing is protocolbuffers#5888 and this PR will probably be superseded by it. Stay tuned. |
Supersedes #7