StefanMaron / BusinessCentral.LinterCop

Community driven code linter for AL (MS Dynamics 365 Business Central)
https://stefanmaron.com
MIT License
77 stars 31 forks source link

Optimized LC0005 #444

Closed dannoe closed 10 months ago

dannoe commented 10 months ago

Optimizations:

Timings on a 914 files test project: Time (s) % Analyzer (Related Diagnostics)
Before 13,583 69 Variable Casing Should Not Differ From Declaration (LC0005)
After 1,113 13 Variable Casing Should Not Differ From Declaration (LC0005)

I had to update the project to .NET Standard 2.1 to use the Span types and some convenient memory extensions methods.

Fixes #284 + #304

Arthurvdv commented 10 months ago

What a wonderful holiday present, thank you 🤗

Arthurvdv commented 10 months ago

This is impressive 🤯

Timings on a 501 files test project: Time (s) % Analyzer (Related Diagnostics)
Before 27,931 62 Variable Casing Should Not Differ From Declaration (LC0005)
After 1,322 7 Variable Casing Should Not Differ From Declaration (LC0005)