Ticket #43 (new enhancement)
Sorting should use inlineable comparison function
| Reported by: | thomasm | Owned by: | |
|---|---|---|---|
| Priority: | critical | Milestone: | 1.0 |
| Version: | Keywords: | ||
| Cc: |
Description
TPIE has switched to using std::sort instead of qsort. However, the comparison function is still supplied through a pointer and it makes a huge difference since we have to make a indirect funtion call for each comparison. We should supply the comparison object in such a way that the function can be inline!
For more motivation, read this: http://www.tilander.org/aurora/2007/12/comparing-stdsort-and-qsort.html
Change History
Note: See
TracTickets for help on using
tickets.
