terminal/src/terminal/input
Leonard Hecker f2386de422
Improve performance and binary size of til::enumset (#11493)
This commit approximately doubles the performance of til::enumset
and reduces it's binary footprint by approximately 1kB.
Most of the binary size can be attributed to exception handling.

Unfortunately this commit removes assertions that the given values are less than
the number of bits in the `underlying_type`. However I believe this to be a good
trade-off as the tests previously only happened at runtime, while tests at
compile time would be highly preferable. Such tests are technically possible,
however MSVC fails to compile (valid) `static_assert`s containing
`static_cast`s over a parameter pack at the time of writing.
With future MSVC versions such checks can be added to this class.

This change was initially discussed in #10492, but was forgotten to
be considered before it was merged. Since the work was already done,
this commit re-introduces the optimization. It's free!

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

## Validation Steps Performed
* Run `printf '\e]8;;http://example.com\e\\This is a link\e]8;;\e\\\n'` in WSL
* A wild dotted line appears ✔️
2021-11-23 18:44:58 +00:00
..
lib Move MouseInput from TermAdapter to TermInput (#4848) 2020-03-12 22:25:43 +00:00
dirs Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
mouseInput.cpp Improve performance and binary size of til::enumset (#11493) 2021-11-23 18:44:58 +00:00
mouseInputState.cpp Consolidate the interfaces for setting VT input modes (#11384) 2021-10-26 21:12:22 +00:00
precomp.cpp Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
precomp.h Change backslashes in include statements to forward slashes (#8205) 2020-11-25 21:02:10 +00:00
sources.inc Move MouseInput from TermAdapter to TermInput (#4848) 2020-03-12 22:25:43 +00:00
terminalInput.cpp Improve performance and binary size of til::enumset (#11493) 2021-11-23 18:44:58 +00:00
terminalInput.hpp Improve performance and binary size of til::enumset (#11493) 2021-11-23 18:44:58 +00:00