-
-
Notifications
You must be signed in to change notification settings - Fork 1
Zdict general cleanup #236
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
Codecov Report❌ Patch coverage is
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 4 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
Patch coverage is low due to many small changes in error handling and debug logs |
folkertdev
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.
Some nits, looks good overall
| c = b'.'; | ||
|
|
||
| /// Prints the bytes as characters, with non-printable characters replaced by '.' | ||
| fn ZDICT_printHex(bytes: &[u8]) { |
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.
can you leave a note here that this is only used for debug output? The implementation locks and releases stderr for every character: we could do that more efficiently but I don't think we should bother.
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 couldn't help it to improve it anyway, now it's just a single eprint! :)
| return Error::dictionaryCreation_failed.to_error_code(); | ||
| } | ||
| ZDICT_initDictItem(dictList); | ||
| dictList.as_mut().unwrap().init(); |
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.
this probably gets cleaned up; the init function then won't even be needed
This makes sure the bounds are checked
0066aa3 to
e0b2b7f
Compare
No description provided.