performance regression in findfirst
due to inlining
#26446
Labels
compiler:optimizer
Optimization passes (mostly in base/compiler/ssair/)
performance
Must go faster
regression
Regression in behavior compared to a previous version
In 0.6 there are no allocations. The reason for this is that
findfirst
is a simple wrapper forfindnext
, and so it does not get specialized on its function argument (since it doesn't call the function itself). However,findnext
is being inlined into it anyway. I don't think we should inline in this case (perhaps whenever the argument types are notis_cacheable_sig
for the target method, and/or because the target method has a loop).The text was updated successfully, but these errors were encountered: