3 ms·
Are you sure that the callback can be inlined though? How would that work, the calls through the pointer would be replaced with the function body? I would assum
by blub 12y ago
Are you sure that the callback can be inlined though? How would that work, the calls through the pointer would be replaced with the function body? I would assume that qsort itself could be, but that wouldn't help much.
- comex 12y agoYes - modern compilers can replace function pointer calls with direct calls if the value is known, and from there they can be inlined.