Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It would also, but nobody cares enough because qsort is already fast enough for most things, and if you cared it is simply enough to do yourself. Are you doubting that C compilers can devirtualize function calls? Here is a small example that illustrates this. The compiler dervirtualizes all calls than folds the result: https://godbolt.org/z/E6cMMr8vx




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: