Skip to content
Prev 15521 / 21307 Next

[Bioc-devel] Duplicated method names in purrr and GenomicRanges

Just an FYI, *if* all you're doing is rbind():ing those data frames,
then you're better of doing:

  df <- do.call(rbind, dfs)

than

  df <- Reduce(rbind, dfs)

because the former is faster and more memory efficient:
# A tibble: 1 x 7
  expression                    min   median `itr/sec` mem_alloc `gc/sec` n_itr
  <bch:expr>               <bch:tm> <bch:tm>     <dbl> <bch:byt>    <dbl> <int>
1 df <- Reduce(rbind, dfs)   65.5ms   68.6ms      13.6     108MB     30.7     8
Warning message:
Some expressions had a GC in every iteration; so filtering is disabled.
# A tibble: 1 x 7
  expression                     min   median `itr/sec` mem_alloc `gc/sec` n_itr
  <bch:expr>                <bch:tm> <bch:tm>     <dbl> <bch:byt>    <dbl> <int>
1 df <- do.call(rbind, dfs)   8.67ms   9.47ms      105.      14MB     49.5    34

/Henrik
On Fri, Sep 13, 2019 at 5:39 AM <bioinf at posteo.de> wrote: