Open MichaelChirico opened 10 months ago
https://github.com/tidyverse/lubridate/blob/e54b612c0672c57bb9cea12dd2482b0d59b3aa64/R/tzdir.R#L55-L61
Happened to notice this helper has a lot of overlap with lintr:::find_config().
lintr:::find_config()
Recently tested that looping over the potential locations & returning the first found is much faster than checking all of them:
https://github.com/r-lib/lintr/issues/2204
Would that be preferable here as well?
Indeed, it does not make sense to check all of them.
https://github.com/tidyverse/lubridate/blob/e54b612c0672c57bb9cea12dd2482b0d59b3aa64/R/tzdir.R#L55-L61
Happened to notice this helper has a lot of overlap with
lintr:::find_config()
.Recently tested that looping over the potential locations & returning the first found is much faster than checking all of them:
https://github.com/r-lib/lintr/issues/2204
Would that be preferable here as well?