
30 May
2015
30 May
'15
11:46 a.m.
I'm led to believe that sorting mutable vectors is faster than sorting lists.
For one thing, you should use "-O2" when looking at performance. For another, you're not actually looking at the sort in isolation. If you pull it out to the top-level (e.g. "doSort = L.sort") so you can see it in the profiling, then even without -O2 I see the vector sort is faster. (Arguably you should include the cost of freezing the vector too.) Regards, Toby.