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
Currently the IDE suggest with Span not to use slice but instead use the Range indexer (IDE0057: Slice can be simplified to this). So the original code:
newVector<T>(B.Slice(Idx))
is then translated to
newVector<T>(B[Idx..])
which would be OK for me but the resulting generated code is different:
Even the resulting JIT Asm seems to be different. I didn't make any performance comparisons, but for my environment it is crucial that the suggested rewrite does not alter the performance of the code.
The text was updated successfully, but these errors were encountered:
Currently the IDE suggest with Span not to use slice but instead use the Range indexer (IDE0057: Slice can be simplified to this). So the original code:
is then translated to
which would be OK for me but the resulting generated code is different:
and the result taken from sharplab:
Even the resulting JIT Asm seems to be different. I didn't make any performance comparisons, but for my environment it is crucial that the suggested rewrite does not alter the performance of the code.
The text was updated successfully, but these errors were encountered: