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
Based on our investigations, some of the String, TextInfo and CompareInfo APIs are running slower with WASM HybridGlobalization (HG) enabled than with HG disabled.
Here is the summary of the largest regressions. We compare the default behavior (using ICU4C) to the scenario with enabled HG (both running with interpreter, similar numbers are reported for AOT as well).
API
time ICU4C [ms]
time HG [ms]
slow-down
String, TextInfo ToLower
0.2698
90.9531
33611%
String, TextInfo ToUpper
0.2545
90.9077
35620%
String, TextInfo ToTitleCase
7.1761
113.7647
1485%
String, String Compare
0.0397
0.374
842%
String, String Equals
0.0397
0.3717
836%
String, CompareInfo Compare
0.0393
0.373
849%
String, String IndexOf
4.7239
2362.6667
49915%
String, String LastIndexOf
8.1408
2361
28902%
Note: These regressions only influence application where HG is enabled (e.g., by adding <HybridGlobalization>true</HybridGlobalization> to the .csproj file) as it is not the default settings.
Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.
Issue Details
Based on our investigations, some of the String, TextInfo and CompareInfo APIs are running slower with WASM HybridGlobalization (HG) enabled than with HG disabled.
Here is the summary of the largest regressions. We compare the default behavior (using ICU4C) to scenario with enabled HG (both running with interpreter).
API
time ICU4C [ms]
time HG [ms]
slow-down
String, TextInfo ToLower
0.2698
90.9531
33611%
String, TextInfo ToUpper
0.2545
90.9077
35620%
String, TextInfo ToTitleCase
7.1761
113.7647
1485%
String, String Compare
0.0397
0.374
842%
String, String Equals
0.0397
0.3717
836%
String, CompareInfo Compare
0.0393
0.373
849%
String, String IndexOf
4.7239
2362.6667
49915%
String, String LastIndexOf
8.1408
2361
28902%
Similar numbers are reported for AOT as well.
Note: These regressions only influence application where HG is enabled (e.g., by adding <HybridGlobalization>true</HybridGlobalization> to the .csproj file) as it is not the default settings.
Based on our investigations, some of the String, TextInfo and CompareInfo APIs are running slower with WASM HybridGlobalization (HG) enabled than with HG disabled.
Here is the summary of the largest regressions. We compare the default behavior (using ICU4C) to the scenario with enabled HG (both running with interpreter, similar numbers are reported for AOT as well).
Note: These regressions only influence application where HG is enabled (e.g., by adding
<HybridGlobalization>true</HybridGlobalization>
to the.csproj
file) as it is not the default settings.Tracking list of APIs waiting to be optimize:
cc: @ilonatommy @mkhamoyan @SamMonoRT
The text was updated successfully, but these errors were encountered: