-
Notifications
You must be signed in to change notification settings - Fork 83
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 to bool BasicHashComputer::use_dictionary and proper case #171
base: master
Are you sure you want to change the base?
Conversation
7c99aa2
to
148bb53
Compare
8c64e26
to
4362933
Compare
hi, is this ok to merge? |
I don't understand why this change alters USE_DICTIONARY but not the other 3 in the trait. I think we should either adjust all of them or pause until we can.... |
@danielrh I agree that naming should be consistent with the rest of the trait (and actually everywhere else in the crate too). Also, I don't want to do breaking changes too often (which result in the new major releases which doesn't get updated too easily). I propose we:
What do you think? |
I think its' fine to merge the repos if that makes it easier. We need to keep the crates separate... otherwise you could end up with massive code duplication Crate A requires Brotli Decompression only if crate C requires both Crate A and Crate B, then there will be 2 copies of the decompressor under your plan. That means two copies of the dictionary, etc, and straining of the cache. The APIs were designed to reflect the public C brotli headers--so we may be able to remove fewer of them than we hope |
@danielrh unless I am mistaken, if both A and B creates use the same version of brotli, there will be only one "code" instance. That's why cargo tries to pick dep version that matches the requirements of all crates. Only when it fails, it would add multiple dependency versions - e.g. brotli v5 and v6 being used by A and B respectively, thus ending up with two duplicated code bases (although there is a chance linker may fix some of that). Also, the P.S. tracking this in #209 |
Yes you are correct--I still would like to keep the crates distinct...I think it helps people consider including the decompressor as its own thing. |
Since this is a breaking change, refactoring the naming as well (perhaps should rename other trait methods for consistency?)
@danielrh it seems there is no easy way to merge the two repos because of something really unexpected (to me) -- both repos started as forks of one, and both had lots of changes done to the same files, having some of them duplicated. I think the easiest would be to simply copy all files in the decompressor repo into There might be some other way to do this and preserve the history, but I can't think of one... maybe stockoverflow will know |
Since this is a breaking change, refactoring the naming as well (perhaps should rename other trait methods for consistency?)