New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade past dplyr 1.0.0 to either 1.0.1 or 1.0.2 causes order of magnitude slowdown in group_by mutate() #5675
Comments
That's intriguing. It seems to be about the handling of the
so these: Line 378 in ae55f5f
suppressing the warnings before they are handled seems to have an impact:
|
Running this without the
which is similar to the performance when suppressing the warning. Most of the difference originally observed is due to catching and promoting the warnings. However this adds value, see original discussion here: #5315 This will potentially be improved when we bring back some sort of hybrid evaluation for |
@romainfrancois I think the problem is more general than Maybe we should avoid instrumenting warnings if a Edit: oops of course a muffle restart will always be on the stack. What we need is to resignal the condition to allow a potential calling handler to invoke that restart. |
I am being botherd by slow down even dplyr ver 1.0.3 of group_by, summarize or mutate_at, and so on. The slow down of dplyr functions come with the package of vctrs ver0.3.1 and above, and/or after intalling dtplyr 1.0.1 even using dplyr 1.0.0. |
Please @norihikorihiko be specific, review the issues we already have on the theme of performance https://github.com/tidyverse/dplyr/issues?q=is%3Aopen+is%3Aissue+label%3A%22performance+%3Arocket%3A%22 and open a new one with a reprex if your findings are not covered. |
dealing with max(na.rm=T) in a mutate statement when grouping by 2 columns slows down by an order by magnitude from version 1.0.0 to 1.0.1
Orders of magnitude difference in time to complete between version 1.0.0 to 1.0.2. When the tibble is very large (thousands or hundreds of thousands of rows) the time explodes. Requires a session restart between installing versions to reproduce the example to ensure the old packages are unloaded and new version is loaded.
Created on 2021-01-04 by the reprex package (v0.3.0)
Created on 2021-01-04 by the reprex package (v0.3.0)
Created on 2021-01-04 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: