Cache the command lines provider to avoid allocation #2412
Labels
Area: Performance
Area: Testing Platform
Belongs to the Microsoft.Testing.Platform core library
sprint
Milestone
During the command line validation here https://github.com/microsoft/testfx/blob/main/src/Platform/Microsoft.Testing.Platform/CommandLine/CommandLineHandler.cs#L55 we're "getting" the options more than one time and we don't own all the command line implementations.
This means that we could allocate more time the options array per command line provider.
We should have a thin layer on the real provider to cache at the first usage and avoid the per check allocations.
AB#2016216
The text was updated successfully, but these errors were encountered: