Slow loading of libraries

I have used profling in an attempt to overcome speed issues with a shiny app. Amongst the problems highlighted was loading of lbraries with tidyverse (presumably because it is the largest) taking more than 4 seconds

Just loading it in a fresh session - separate from the shiny app gave the following result

R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)...


-- Attaching packages --------------------------------------- tidyverse 1.2.1 --
v ggplot2 3.2.1 v purrr 0.3.3
v tibble 2.1.3 v dplyr 0.8.3
v tidyr 1.0.0 v stringr 1.4.0
v readr 1.3.1 v forcats 0.4.0
-- Conflicts ------------------------------------------ tidyverse_conflicts() --
x dplyr::filter() masks stats::filter()
x dplyr::lag() masks stats::lag()
user system elapsed
2.42 0.47 4.53

These results are 10x slower than was occurring when raised as a github issue some years back

Under 3.6.1's console I get

   user  system elapsed 
  0.794   0.066   0.883 

on an old Mac Air.

and in an RStudio console about the same

   user  system elapsed 
  0.660   0.046   0.840 

I don't have an Linux box unpacked, so I can't run the test, but I'd expect it to return similarly. Why Platform: x86_64-apple-darwin15.6.0 (64-bit) is so much faster I'm unsure.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.