When the pipeline from #1055 is up to date, the flame graph looks like this:

This is because file.info()
and file.exists()
are checked one at a time. I think we can speed this up by caching file.info(list.files("_targets/objects", full.names = TRUE))
in the tar_runtime
object and invalidating various cached entries when the appropriate targets complete.