Closed dannoe closed 10 months ago
What a wonderful holiday present, thank you 🤗
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) |
Optimizations:
ReadOnlySpan<char>
instead ofstring
where possibleIsValidKind
now generates all valid kinds once at startup and then uses the HashSetO(1)
or at least better than string operations on every node/syntaxtoken)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