Closed phmonte closed 2 months ago
@Corniel do you have any other considerations?
After further inspection, I wondered: why caching the lines? If the lines don't change, the Info does not change either. As the DotNetInfo is immutable, I would argue that the result of the parsing should be cached, not the input.
@Corniel thanks, it would really make sense to cache the output, I'll make the change.
Feature:
Cache dotnet --info result per project
Description
In some scenarios, executing dotnet --info may take longer than desired, especially when executed within containers with few resources.
This pr adds a cache where the key is the full path of the project.