Using appliedParams instead of "supplied" params in compressBegin()#1982
Using appliedParams instead of "supplied" params in compressBegin()#1982bimbashrestha merged 2 commits intofacebook:devfrom
Conversation
Is this what we want ? |
|
On further consideration, this is not a bug. If @Cyan4973, there is no difference. But I guess the point is that if there were, it would be important for us to use the applied params, not the requested params. |
It calls ZSTD_ldm_adjustParameters when we're in ldm mode though (which sets the ldm params). And I need to be able to use that inside loadDictionaryContent when filling the ldm hash tables. |
|
Ok, sorry, yes. I was talking specifically about the cparams. |
|
While not a bug, it is necessary to fill LDM tables while loading the dictionary. |
EDIT:
This PR doesn't change compression behavior, it is necessary for enabling ldm with dictionaries because resetCCtx changes ldm params