-
Notifications
You must be signed in to change notification settings - Fork 8
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
brotli.encode/brotli.decode, does not work with long strings #53
Comments
Thank you for the great report. I will make some time this week to look into this and get a fix out. |
Sorry for the delay, I have not had time to fully address this yet. However, I see that during encoding of 256KB.json: I will be investigating this more to understand where the difference is. |
I did some testing on this issue with different file sizes. Changing the buffer size does not solve the problem in general, only in the specific case. The next logs were received with
After several experiments, I noticed some patterns:
|
Hi, when the string is long, brotli.encode/decode cuts the string in half, I've tried with several long strings and the result is the same, with short strings it works fine.
code example (I'm running on Windows 11 x64 and es_compression 2.0.13):
use this string as an example (data variable): https://microsoftedge.github.io/Demos/json-dummy-data/256KB.json
As you can see the data is halved in the brotli.encode/decode process.
The text was updated successfully, but these errors were encountered: