Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping severity types is very slow. Rewrite it to use a dictionary. #28

Open
janniksam opened this issue Dec 16, 2019 · 1 comment
Open

Comments

@janniksam
Copy link

The foreach loop @
https://github.com/alanwales/vsts-resharper-code-quality-task/blob/master/src/task/RunResharperCodeAnalysisTool.ps1#L134
is very slow with a huge amount of found issues. (takes like 3-5 min for 30000 issues on our machines).

A rewrite using a dictionary to map severity types to a severity level would be alot more efficient. The Linq-expression does cost alot of performance.

@tomkerkhove
Copy link
Contributor

Happy to review a PR if you have the bandwidth!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants