News for hackers. Stuff that matters.
Re:Base64 encoding and decoding at almost the speed of a mem... by londons_explore on Wednesday November 06, 2019 @05:46AM (#21461323)
Try it...

    wget http://mattmahoney.net/dc/enwik8.zip -O - | gunzip | head -c 1000000 | gzip -9 | wc -c
    355350
    wget http://mattmahoney.net/dc/enwik8.zip -O - | gunzip | head -c 1000000 | base64 | gzip -9 | wc -c
    528781
base64 is 48.8% larger after compression on english text, whereas it would only be 33.3% larger without compression. The reason is because compression finds and eliminates repeating patterns, but base64 can make the same input data look totally different depending on which of the 4 input alignments it has.
Re:Base64 encoding and decoding at almost the speed of a mem... by xxs on Wednesday November 06, 2019 @05:59AM (#21461374)
oddly enough lz/deflate are as ancient as base64. 16bit deflate is quite poor and slow, yet predominant.