4 ms·
JavaScript developers tell me that disk space and network bandwidth are cheap these days. While they're mostly saying that to try and justify extremely bad arch
by csande17 4y ago
JavaScript developers tell me that disk space and network bandwidth are cheap these days. While they're mostly saying that to try and justify extremely bad architectural decisions (what's a couple thousand NPM dependencies between friends?), maybe we can apply that logic here. Maybe it's worth making every image file twice as big, if we can use a much simpler decoder implementation that's not a constant source of bugs and security vulnerabilities.
- Dylan16807 4y agoBy using a bespoke decompressor? No thanks. Take a standard format and make sure all array bounds are checked. Data-oriented compression formats tend not to be very complicated and can be implemented with few instances of simple data structures.