News for hackers. Stuff that matters.
Re:Base64 encoding and decoding at almost the speed of a mem... by sitkack on Wednesday November 06, 2019 @01:18PM (#21465280)
If the data being base64 encoded will also then be compressed, it is better to base16 encode (hex) and then apply compression. Base16 is faster to encode and compresses better (probably compresses faster, didn't test that).

    2537012 Nov  6 10:10 test.tar.hex.gz
    2954608 Nov  6 10:03 test.tar.b64.gz
All the caveats, test with your data, etc.

What would be nice is an email/http resilient compressed format that could be stuck inside of json strings that can be easily recovered.

Re:Base64 encoding and decoding at almost the speed of a mem... by Asraelite on Wednesday November 06, 2019 @05:10PM (#21468063)
That being true, it might be worthwhile for compression algorithms to detect base64 encoding (or any other base for that matter) and reinterpret it as base16 in order to improve compression rates.
Re:Base64 encoding and decoding at almost the speed of a mem... by sitkack on Wednesday November 06, 2019 @06:28PM (#21468728)
On the Internet with neural networks! #priorart