8 ms·
The other overhead you have to pay for every time: The data has to be base64 decoded before it can be used. Compared to decompressing the PNG or JPEG data, dec
by pmjordan 16y ago
The other overhead you have to pay for every time: The data has to be base64 decoded before it can be used.
Compared to decompressing the PNG or JPEG data, decoding base64 is essentially free. It will therefore also not matter much at what stage it's cached.
- jws 16y agoMaybe. The JPEG decompression has been mercilessly optimized for decades. The oddball base64 URI decode might have been done by the team's crappy coder that no one trusts, but you can write decent test cases for base64 decoding, so you can burn his hours for a few weeks without him doing any lasting harm to the code base.