Hacker News new | ask | show | jobs
by FollowingTheDao 641 days ago
This makes me think: If JPEG-XL needs more computing power to decompress, does that out weigh the ecological benefit benefit of the smaller file size?
1 comments

JPEG XL is pretty cheap to decompress.

Advancements in compression algorithms also came with advancements in decompression speed. New algorithms like tANS are both compressing well, and have very fast implementations.

And generally smaller files decompress faster, because there's just less data to process.

But how does the ecological benefit of space savings compare with the extra power consumption from compressing and decompressing?

And will people take more pictures because of the space savings leading to more power consumption from compressing and decompressing the photos?

Is this just greenwashing by Apple?

But I have now decided to take my photos off of Apple's servers as well as to take way way less photographs, if any. The climate of my near future is way more important than a photograph of my cat.

You have an invalid assumption that extra power is spent on better compression or decompression. It generally takes less energy to decompress a better-compressed file, because the decompression work is mostly proportional to the file size. Energy for compression varies greatly depending on codec and settings, but JPEG XL is among the fastest (cheapest) ones to compress.

Secondly, you have an invalid assumption that the amounts of energy spent on compression have any real-world significance. Phones can take thousands of photos when working off a tiny battery, and most of it is spent on the screen. My rough calculation is that taking over a million photos takes less energy than there is in a gallon of gas.

Apart form that, compression cost is generally completely ignored, because files are created only once, but viewed (decompressed) many many times over.

Smaller files save storage space. Storage has costs in energy and hardware.

Smaller files are quicker to transfer, and transfer itself can be more energy intensive than compression. It's still small in absolute numbers.

He also has an invalid assumption about RAW as well .
No, I did not. You did not understand the question I was asking.