11
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 02 Jul 2026
11 points (100.0% liked)
Rust Programming
9324 readers
12 users here now
founded 7 years ago
MODERATORS
Folks , if you have any thoughts , please do share
While post body contains control flow, it can be simple arithmetic operation instead and it will lead to the similar result, so not the control flow itself causing this. It seems more complex closure blocks some optimizations here, thus quicksort having less instructions. I suspect that complex closure was outlined to a separate fn, and not copied to quicksort anymore.