-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WASM][AOT] recursive foreach loop is 17x slower than for loop over List<T> using profiled AOT #48179
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsDescriptionfull repro is coming Considering the following cpde: static void Bench(List<int> array)
{
for (int i = 0; i < innerCount; i++)
{
Nest(0);
}
void Nest(int depth)
{
if(depth == maxDepth)
{
return;
}
for (int i = 0; i < array.Count; i++)
{
Nest(depth + 1);
}
}
} Changing the loop type from for to profiled AOT Nested loops:
Full-AOT Nested loops:
ConfigurationRegression?No Other information
|
I don't have enough context to answer that, zoltan would |
@jeromelaban Does this still happen ? |
@jeromelaban - can we close this, seems like 54272 was closed. |
@SamMonoRT Indeed we can. |
Description
full repro is coming
Considering the following cpde:
Changing the loop type from for to
foreach
results in a significant performance degradation:profiled AOT Nested loops:
00:00:00.0008850
00:00:00.0138100
Full-AOT Nested loops:
00:00:00.0002350
00:00:00.0110250
Configuration
bb65067
Regression?
No
Other information
The text was updated successfully, but these errors were encountered: