-
Notifications
You must be signed in to change notification settings - Fork 43
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
Convert diagnostic messages into plain text #1075
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1075 +/- ##
==========================================
- Coverage 55.06% 54.97% -0.10%
==========================================
Files 660 667 +7
Lines 21954 22092 +138
Branches 1703 1710 +7
==========================================
+ Hits 12090 12145 +55
- Misses 9469 9548 +79
- Partials 395 399 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Seems good to me.
I only have one suggestion, the method GetOutput
implies (by name) that it is a getter.
Even if specified in docs, most programmers don't expect something that sounds like a getter to mutate the state of the current item. It may be better to rename it to something like GetOutputAndReset
or Finish
/Finalize
. Neither of these suggestions are particularly great, so name it whatever you feel like. It's just a hint.
As for the generated formatting logic, it could be sped up by using IndexOf
which defaults to SIMD under the hood. That said, I expect the bracket matching to be in the range of 900MB/s, so I don't expect that to ever be a bottleneck. The SIMD version for reference I imagine is above 13GB/s. Either way, no issue there, it's probably already fast enough, but if you ever want to optimize it, that's where you wanna strike.
I was thinking about |
I'm down for |
This is the first step towards rendering diagnostics in the UI. Diagnostic messages can now be written as plain text with all their fields populated.