Closed xrobin closed 5 years ago
It turns out duplicated.matrix is slow. It can be replaced by two calls to duplicated.vector and a vector &
.
Using the benchmarks from the cutpointr vignette, we are down to nearly the speed of ROCR, despite some remaining inefficient calls to sort, unique, duplicated and %in%.
Too much time is spent in roc.utils.R:60 in
roc.utils.perfs.all.fast
:There must be a better way to do it. Here is some benchmarking code: