Skip to content
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

对utf8的编码有和scsu编码的压缩率做过对比评测吗? #1

Open
gcxfd opened this issue Sep 1, 2020 · 3 comments
Open

Comments

@gcxfd
Copy link
Contributor

gcxfd commented Sep 1, 2020

https://master.dl.sourceforge.net/project/scsu/scsu.js
https://en.wikipedia.org/wiki/Standard_Compression_Scheme_for_Unicode

@gcxfd
Copy link
Contributor Author

gcxfd commented Sep 1, 2020

测试了一下,对于中文压缩效果没有 scsu好,可以考虑用scsu+字节流来实现utf8压缩?

@gcxfd
Copy link
Contributor Author

gcxfd commented Sep 1, 2020

https://github.com/rmw-lib/zspack/blob/master/zspack.js 我hack了一下,实现了

@gcxfd
Copy link
Contributor Author

gcxfd commented Sep 1, 2020

我理解unicode因为往往是连续编码的(就是常常是同一种语言),scsu存的是差值,这样就省了一大截空间。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant