Uh oh!
There was an error while loading. Please reload this page.
[interp] Fold "ldstr".Length to a constant - #43945
Conversation
ghost
commented
Oct 28, 2020
Tagging subscribers to this area: @BrzVlad |
BrzVlad
commented
Oct 28, 2020
In which real world scenario does this provide us with an improvement ? Especially since, unlike ryu-jit I assume, we don't even track the string literal across variables, so it wouldn't be able to optimize the example from the linked PR, using the |
even without inlining like in ryujit PR (the idea of that sample was to answer the question why that optimization was not done in Roslyn) it's still useful IMO, search for |
EgorBo
commented
Nov 1, 2020
Tests fail with will fix. |
A similar optimization for RyuJIT was quite profitable judging by the jit-diff: #1378
Example:
Current
MONO_VERBOSE_METHOD=Testoutput:New output: