Skip to content
Prev 55321 / 63424 Next

Subsetting the "ROW"s of an object

Funny. I get similar results to yours above albeit with smaller differences. Usually < 5 percent.

But with subset_ROW4 I see no consistent difference.

In this example, it runs faster on average using `eval(mc)' to return the result:
# A tibble: 2 x 8
  expression                      min     mean   median      max `itr/sec` mem_alloc  n_gc
  <chr>                      <bch:tm> <bch:tm> <bch:tm> <bch:tm>     <dbl> <bch:byt> <dbl>
1 subset_ROW4(arr, i, FALSE)   28.9?s   34.9?s   32.1?s   1.36ms    28686.    5.05KB     5
2 subset_ROW4(arr, i, TRUE)    28.9?s     35?s   32.4?s 875.11?s    28572.    5.05KB     5
And on subsequent reps the lead switches back and forth.


Chuck