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

Single symbol explosion #11

Open
piotr-sneller opened this issue Feb 13, 2023 · 0 comments
Open

Single symbol explosion #11

piotr-sneller opened this issue Feb 13, 2023 · 0 comments

Comments

@piotr-sneller
Copy link

piotr-sneller commented Feb 13, 2023

If the input is composed of only one character, e.g. "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", the compressed output size is double the input size:

ANS input size: 72, output size 148, compression ratio -105.555556%

If another character is introduced, e.g. "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab", the excellent compression ratio is restored:
ANS input size: 72, output size 4, compression ratio 94.444444%

I tested it on the scalar version of rans_word_sse41.h.

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