|
|
|
|
|
by andyayers
444 days ago
|
|
Long-running methods (like the one here) transition mid-execution to more optimized versions, via on-stack replacement (OSR), after roughly 50K iterations. So you end up running optimized code either if the method is called a lot or loops frequently. The OSR transition happens here, but between .net8 and .net9 some aspects of loop optimizations in OSR code regressed. |
|