You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the documentation, I see that there are functions for compressing/decompressing "using an external dictionary". It is just a slice of bytes. What should those bytes be? How is it used by the algorithm?
I'm not super well versed in data compression theory and trying to learn...
My guess is that, since the algorithm works by finding back-references to previously-encountered data, the dictionary is just a bunch of bytes that will be treated as if they had come before the start of the actual data to compress? (to give the algorithm something it can refer to while it is still at the start of the compression sequence and hasn't encountered much "real" data yet)
Is my guess/assumption correct?
If so, would be nice if something about this gets added to the documentation...
The text was updated successfully, but these errors were encountered:
Looking at the documentation, I see that there are functions for compressing/decompressing "using an external dictionary". It is just a slice of bytes. What should those bytes be? How is it used by the algorithm?
I'm not super well versed in data compression theory and trying to learn...
My guess is that, since the algorithm works by finding back-references to previously-encountered data, the dictionary is just a bunch of bytes that will be treated as if they had come before the start of the actual data to compress? (to give the algorithm something it can refer to while it is still at the start of the compression sequence and hasn't encountered much "real" data yet)
Is my guess/assumption correct?
If so, would be nice if something about this gets added to the documentation...
The text was updated successfully, but these errors were encountered: