Specialized slice::fill implementations are not inlined #83235
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
I-slow
Issue: Problems and improvements with respect to performance of generated code.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Specialized slice::fill implementations are not inlined even though they would compile down to pretty much just a single memset-call.
The
bar
function below represents manual inlining of the implementation of fill.(Playground)
I haven’t tested it in any way, but I suspect that this can be fixed by marking the
fill
specialized implementations foru8
,i8
, andbool
as#[inline]
.The text was updated successfully, but these errors were encountered: