-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
refactor: local trace decoder and identifier #7108
Conversation
|
||
if max_len == 0 { | ||
// Skip checking individual bytes if the lengths are too different. | ||
if n_different_bytes > 32 && n_different_bytes * 10 > a.len() { |
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.
would pref if we moved the constants out and named them to make it clearer why we chose these numbers
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.
Added a comment, LMK
9c8678a
to
0e1a711
Compare
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.
nice
69ba162
to
ae2e165
Compare
Supersedes #7091
cc @mds1 @klkvr