• 0 Posts
  • 14 Comments
Joined 1 year ago
cake
Cake day: July 4th, 2023

help-circle








  • bastian_5@sh.itjust.works
    cake
    toProgrammer Humor@programming.devOrder
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Depends on if you’re using lossless or lossy compression. Lossless compression will usually make it bigger, because it relies entirely on data being formatted so their are common patterns or elements that can be described with fewer parts. Like, an ok compression algorithm for a book written in English and stored as Unicode would be to convert it to ASCII and have a thing that will denote Unicode if there happens to be anything that can’t convert. An encrypted version of that book would look indestinguishable from random characters, so compressing it at that point would just put that Unicode denoter before every single character, making the book end up taking more space.