Skip to content
Prev 10995 / 21312 Next

[Bioc-devel] Question about BiocGeneric::order

Hi Michael,
On 05/11/2017 03:27 PM, Michael Lawrence wrote:
Note that base::order() is much slower than the method for Rle objects:

 > system.time(oo1 <- order(x))
    user  system elapsed
   0.018   0.000   0.018

 > system.time(oo2 <- base::order(x))
    user  system elapsed
   1.089   0.000   1.103

 > identical(oo1, oo2)
[1] TRUE

Looks like by default, base::order() does not pick up the fastest
method (radix):

 > system.time(oo2 <- base::order(x, method="radix"))
    user  system elapsed
   0.020   0.000   0.019

H.