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
. This is the script that inspired me for an even faster version.
available at http://broofa.com/Tools/JSLitmus/JSLitmus.js
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):ChromeSafariFirefoxOperaIE10IE9
(using IETester v0.4.12 http://www.my-debugbar.com/wiki/IETester/HomePage
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.