terminal/src/terminal
Leonard Hecker 9aa4a115aa
Improve Base64::Decode performance (#11467)
This commit renames `Base64::s_Decode` into `Base64::Decode` and improves its
average performance on short strings of less than 200 characters by 4.5x.
This is achieved by implementing a classic base64 decoder that reads 4
characters at a time and produces 3 output bytes. Furthermore a small
128 byte lookup table is used to quickly map characters to values.

## PR Checklist
* [x] I work here
* [x] Tests added/passed

## Validation Steps Performed
* Run WSL in Windows Terminal
* Run `printf "\033]52;c;aHR0cHM6Ly9naXRodWIuY29tL21pY3Jvc29mdC90ZXJtaW5hbC9wdWxsLzExNDY3\a"`
* Clipboard contains `https://github.com/microsoft/terminal/pull/11467` ✔️
2021-10-26 21:30:25 +00:00
..
adapter Consolidate the interfaces for setting VT input modes (#11384) 2021-10-26 21:12:22 +00:00
input Consolidate the interfaces for setting VT input modes (#11384) 2021-10-26 21:12:22 +00:00
parser Improve Base64::Decode performance (#11467) 2021-10-26 21:30:25 +00:00
dirs Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00