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 am not sure if this is a bug or if this should be handled as a feature. In fit_helpers, both form_form and xy_xy call system.time with the default value of TRUE for gcFirst. This triggers unnecessary garbage collection which slows down significantly e.g. tune_grid for simple models such as decision trees. For instance the following code:
runs in roughly 50 seconds on my computer with gcFirst=TRUE but takes only 20 seconds with gcFirst=FALSE.
I'm not sure whether precise timing reporting is needed. If this is not the case, maybe gcFirst=FALSE should always be used. If some flexibility is needed, it could be a user visible option. In any case, the default to gcFirst=TRUE is adding a significant overhead to simple model fitting.
The text was updated successfully, but these errors were encountered:
We'll turn off the garbage collection. We'll also tie the computing of the execution time to the control option for verbosity so that the new default will be to not compute the execution time.
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
I am not sure if this is a bug or if this should be handled as a feature. In fit_helpers, both
form_form
andxy_xy
callsystem.time
with the default value ofTRUE
forgcFirst
. This triggers unnecessary garbage collection which slows down significantly e.g.tune_grid
for simple models such as decision trees. For instance the following code:runs in roughly 50 seconds on my computer with
gcFirst=TRUE
but takes only 20 seconds withgcFirst=FALSE
.I'm not sure whether precise timing reporting is needed. If this is not the case, maybe
gcFirst=FALSE
should always be used. If some flexibility is needed, it could be a user visible option. In any case, the default togcFirst=TRUE
is adding a significant overhead to simple model fitting.The text was updated successfully, but these errors were encountered: