Skip to content

Large memory dependency in OrdinalCasing::ToUpper #43732

Closed
@marek-safar

Description

@marek-safar

ushort[]? casingTable = s_casingTable[pageNumber];
has a dependency on the large array which is unnecessary. The whole array is about 25k 2k and aggressively allocated in the static constructor but it needs to actually store only 32 bytes of data. Please replaced the multi-dimensional array with simple binary map (0 for existing null, 1 for s_noCasingPage).

Metadata

Metadata

Assignees

Labels

area-System.GlobalizationenhancementProduct code improvement that does NOT require public API changes/additionssize-reductionIssues impacting final app size primary for size sensitive workloadstenet-performancePerformance related issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions