If you wonder why another one, then focus on the title. What you get is significant performance in encoding and light speed in decoding.
I was using a great piece of code written by Fred Palmer
, available at
. This is the script that inspired me for an even faster version.
Having all in hand I combined my script with Fred’s and Robert’s scripts into a single html file (https://jsbase64.codeplex.com/downloads/get/666485
Running performance and comparison tests for encoding and decoding ASCII and UTF-8 input on my laptop using different browsers, I got the following results (B64 is my script and Base64 is Fred’s script):
(using IETester v0.4.12
and 342% for decoding, and 137% for UTF-8 input encoding and 460% for decoding. For IE-10 the gains are 138%, 148%, 214% and 131% respectively. While these figures were generated within an "ideal environment", I suggest you to run the tests on your
I assume that there is space for micro-optimizations, but I leave this task for you. Your comments and ratings are welcomed. Thank you for your time.