Florent Daigniere wrote: > Anyway, how do you determine if a file is already compressed or not without > actually compressing it? Did you do the maths?
An heuristic that should get this right most of the time is just count how many times each byte value (0x00, 0x01, 0x02) etc appears in the first few megabytes. If the distribution is not even then theoretically the data can be compressed further. X
