[mlpack-git] [mlpack/mlpack] Check if SortStruct provides any benefit. (#712)

lozhnikov notifications at github.com
Thu Jun 30 03:39:43 EDT 2016


I wrote a simple test. With `-O3` `std::pair` is faster then `SortStruct`.
If `n=100M`:
```
SortStruct results:
sorted[0].n = 26200464
fill duration = 1620ms
sort duration = 17090ms
std::pair results:
sorted[0].n = 26200464
fill duration = 1597ms
sort duration = 12287ms
```
[main.cpp.zip](https://github.com/mlpack/mlpack/files/340894/main.cpp.zip)



---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/712#issuecomment-229583356
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160630/94a33b30/attachment-0001.html>


More information about the mlpack-git mailing list