Open y-iihoshi opened 9 months ago
- Performance of enum and/or string related operations
I found that EqualityComparer<T>.Default
for enums has already been implemented as follows in order to avoid boxing. So it is not necessary for me to implement a specialized EqualityComparer<T>
used for enum-keyed dictionaries.
Currently, the Razor view that generates an HTML template of ThSFC depends strongly on string-keyed dictionaries based on enums. I would like to reduce reasonably the classes and instances, including such dictionaries, defined in TemplateGenerator.Models.* namespaces.
There are several points of concern for me: