use pdqselect for median_algorithm selection (#3636)

* use pdqselect for median_algorithm selection instead of sorting the whole vec

* Make use of pqdselect clearer

Co-Authored-By: André Silva <andre.beat@gmail.com>

* Make use of pqdselect clearer

Co-Authored-By: André Silva <andre.beat@gmail.com>
This commit is contained in:
Ashley
2019-09-24 08:37:53 +12:00
committed by Robert Habermeier
parent 2d6e617309
commit 1baee72d75
3 changed files with 10 additions and 2 deletions
+1
View File
@@ -34,6 +34,7 @@ log = "0.4.6"
schnorrkel = { version = "0.8.4", features = ["preaudit_deprecated"] }
rand = "0.6.5"
merlin = "1.0.3"
pdqselect = "0.1.0"
[dev-dependencies]
keyring = { package = "substrate-keyring", path = "../../keyring" }