Open
Description
See https://godbolt.org/z/fE18sq4WK, you can find serval calls to the following functions:
core::panicking::panic
core::panicking::panic_bounds_check
core::slice::index::slice_end_index_len_fail
core::slice::index::slice_index_order_fail
core::slice::index::slice_start_index_len_fail
To my understanding, if the sorting algorithm implementation is correct, no bounds checking failure will occur, so this might be something we can optimize, but I am not sure how much these bounds checking codes can affect performance or whether it’s worth looking into.
Metadata
Metadata
Assignees
Labels
Area: Code generationArea: `[T]`Category: An issue highlighting optimization opportunities or PRs implementing suchCall for participation: Hard difficulty. Experience needed to fix: A lot.Call for participation: Help is requested to fix this issue.Issue: Problems and improvements with respect to performance of generated code.Relevant to the library team, which will review and decide on the PR/issue.