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

lozhnikov notifications at github.com
Thu Jun 30 04:04:33 EDT 2016


I realized that we do not sort huge amounts of data. I corrected the test.
With `-O3` `std::pair` is a little bit faster.
If `n = 10`, `numIterations = 100M`:
```
SortStruct results:
unnecessaryCodeRemovalPreventer = 1.09091e+08
sort duration = 33621ms
std::pair results:
unnecessaryCodeRemovalPreventer = 1.03127e+08
sort duration = 29536ms
```
[main2.cpp.zip](https://github.com/mlpack/mlpack/files/340950/main2.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-229590259
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160630/93c5d18e/attachment.html>


More information about the mlpack-git mailing list