Hacker News new | ask | show | jobs
by chmod775 261 days ago
The byte counter seems broken somehow. "Compressing" a single character with a compression level of 0 says "12 bytes", yet in the visualization there's less than 8 bytes (~7.5).

When compressing with a level higher than 0, the bits also don't appear to add up to a natural number of bytes, so I'm thinking the visualization is missing some padding?

1 comments

At least for me, compressing a single "a" at compression level 0 gives me an output of 91 bits, which rounds up to 12 bytes.
I fixed the bug after reading the comment you replied to :) (I'm @lynn)

The LEN and NLEN items were not getting visualized.