Closed DavisVaughan closed 1 year ago
In particular, avoid eager calls to as_label() and glue() (i.e. validate_is_terms_list_or_null())
as_label()
glue()
validate_is_terms_list_or_null()
use this as a benchmark
library(tidymodels) set.seed(1) file <- tempfile(fileext = ".Rprof") p <- profvis::profvis({ res <- fit_resamples(linear_reg(), mpg ~ ., bootstraps(mtcars, 100)) }, prof_output = file, interval = .005) out <- summaryRprof(file) out_tbl <- tibble::as_tibble(out$by.total, rownames = "fn") out_tbl %>% mutate(fn = gsub("\"", "", fn)) %>% arrange(desc(self.pct))
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.
In particular, avoid eager calls to
as_label()
andglue()
(i.e.validate_is_terms_list_or_null()
)use this as a benchmark