You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Refactor score processing and service utilities
- Improved StdDevScoreProcesser to utilize parallel processing and simplified logic for ranking records.
- Enhanced StealScoreProcesser with a FrozenDictionary for control records and optimized record selection.
- Updated BestsService and DfBestsService to use Task.WhenAll for asynchronous data preparation.
- Refactored DfListService and ListService to streamline record conversion and data retrieval.
- Introduced FrozenSet and FrozenDictionary in various services for improved performance and memory efficiency.
- Simplified score filtering logic in ScoreFilterHelper and ScoreProcesserHelper.
- Added new rating factors and utility methods in ConstantMap for better rank resolution.
- Enhanced Union class with caching for JSON property names to optimize serialization performance.
}).Where(x =>!string.IsNullOrEmpty(x.Namespace)&&!string.IsNullOrEmpty(x.FontPath)).ToFrozenDictionary(x =>x.Namespace!, x =>(x.FontPath!,x.Fallbacks));
ImmutableArray<PropertyInfo>properties=PropertyCache.GetOrAdd(type,static t =>[.. t.GetProperties(BindingFlags.Instance|BindingFlags.Public).Where(property =>property.CanRead&&property.GetIndexParameters().Lengthis0)]);
privatestaticboolIsLeafType(Typetype)=>LeafTypeCache.GetOrAdd(type,static t =>t.IsPrimitive||t.IsEnum||t==typeof(string)||t==typeof(decimal)||t==typeof(DateTime)||t==typeof(DateTimeOffset)||t==typeof(TimeSpan)||t==typeof(Guid));
0 commit comments