-
-
Notifications
You must be signed in to change notification settings - Fork 887
Use helper methods to access clip tables #1803
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
Conversation
- Make bitmask static readonly - Add aggresive inlining - Change Guard to DebugGuard in ReadValue
Codecov Report
@@ Coverage Diff @@
## master #1803 +/- ##
==========================================
- Coverage 87.30% 87.10% -0.21%
==========================================
Files 936 936
Lines 47855 47848 -7
Branches 6011 6010 -1
==========================================
- Hits 41780 41678 -102
- Misses 5085 5176 +91
- Partials 990 994 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
| InitializeFixedCostsI4(); | ||
| } | ||
|
|
||
| private static readonly byte[] Abs0Table = |
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.
Make these use the ReadOnlySpan-trick?
Cf. #1799 (comment)
It's already used in this class e.g. in LogTable8Bit (above).
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.
Before I make this change, i would like to ask for other opinions on that matter. Should we really go all in with that trick and change all byte, sbyte arrays to ReadOnlySpan here?
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 would say yes.
antonfirsov
left a comment
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.
Looks good!
Prerequisites
Description
This is a follow up PR to #1800: As suggested by @antonfirsov, the clip tables are now accessed via methods.
Also adds some minor improvements to
Vp8LBitReader