AlexTeixeira/Askmethat-Aspnet-JsonLocalizer

Improve string comparison for better performance

AlexTeixeira opened this issue · 0 comments

As mention in this article :

https://dotnettips.wordpress.com/2019/11/25/properly-comparing-strings-with-globalization-and-performance-in-net/

Using InvariantCultureIgnoreCase in string equals for dictionary key matching is slow.
Using OrdinalIgnoreCase will improve the whole application performance.