You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if it's isolated to grouped tibbles, but the effect seems to be more apparent on them. If we omit the grouping in the above reprex, both benchmarks have similar times.
I'm probably just observing the effect of running first many times. Here's a simpler example without a grouped tibble. On the previous version of dplyr, the first benchmark took 8 microseconds.
x<-1:10000bench::mark(
first=dplyr::first(x),
indexed=x[1]
)
#> # A tibble: 2 x 6#> expression min median `itr/sec` mem_alloc `gc/sec`#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>#> 1 first 64.7us 69.8us 13674. 10.3MB 18.9#> 2 indexed 100ns 200ns 4016387. 0B 0
Using
dplyr 1.1.0
andvctrs 0.5.2
, I'm noticing speed issues when evaluatingfirst
within grouped tibbles.On
dplyr 1.0.10
withvctrs 0.5.0
, thefirst
benchmark is about 1.7 ms.The text was updated successfully, but these errors were encountered: