Reduce lookups needed in ConcurrentDictionaries in ContentNavigationServiceBase (#19603)
Reduce lookups needed in ConcurrentDictionaries and sort using List.Sort, make key removal O(1) by using hashsets and avoid duplicates, remove unneeded .ToList() and other minor tweaks
This commit is contained in:
@@ -68,7 +68,7 @@ public class RegisterModelBuilder : MemberModelBuilderBase
|
||||
UsernameIsEmail = _usernameIsEmail,
|
||||
MemberProperties = _lookupProperties
|
||||
? GetMemberPropertiesViewModel(memberType)
|
||||
: Enumerable.Empty<MemberPropertyModel>().ToList(),
|
||||
: [],
|
||||
AutomaticLogIn = _automaticLogIn
|
||||
};
|
||||
return model;
|
||||
|
||||
Reference in New Issue
Block a user