-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Investigate to move from jschardet
to chardet
#159896
Comments
It does not look very good for our unit tests though. There is indication that
|
Let's go through these one by one:
|
jschardet
to chardet
Trying to run the Uint8Array.from([...str].map(v => v.charCodeAt(0))) (from https://stackoverflow.com/questions/73063232/how-to-convert-a-hex-binary-string-to-uint8array) Looks like still some failures:
To reproduce
|
Now that you point that out, it seems like memory usage is another argument to switch to
Awesome!
Yeah, differences are to be expected. Can you go through them one by one and see what are the real red flags? |
Not really, we pass a limited amount of bytes to
But yeah, its a small win of not having to call this:
I am not sure how I can reason about a failing |
It's the same argumentation I had in my comment above:
|
Closing this as not planned. |
We currently use https://github.com/aadsm/jschardet and want to explore replacing that with https://github.com/runk/node-chardet
The text was updated successfully, but these errors were encountered: