terminal/src/til/ut_til
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
..
BaseTests.cpp
BitmapTests.cpp
CoalesceTests.cpp
ColorTests.cpp
DefaultResource.rc
EnumSetTests.cpp Improve performance and binary size of til::enumset (#11493) 2021-11-23 18:44:58 +00:00
MathTests.cpp Fix building with v143 toolchain (#10727) 2021-07-20 19:00:49 +02:00
mutex.cpp
OperatorTests.cpp
PointTests.cpp Fix building with v143 toolchain (#10727) 2021-07-20 19:00:49 +02:00
product.pbxproj
RectangleTests.cpp
ReplaceTests.cpp
RunLengthEncodingTests.cpp
SizeTests.cpp
SomeTests.cpp
sources
SPSCTests.cpp
StaticMapTests.cpp
string.cpp Introduce vk() and sc() key chord specifiers (#10666) 2021-07-20 22:34:51 +00:00
throttled_func.cpp
til.unit.tests.vcxproj Add an enum-compatible bitset class. (#10492) 2021-09-27 13:27:29 +00:00
til.unit.tests.vcxproj.filters Add an enum-compatible bitset class. (#10492) 2021-09-27 13:27:29 +00:00
u8u16convertTests.cpp