Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Vectorize and cache file.info() #1056

@wlandau

Description

@wlandau

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

Screenshot 2023-04-27 at 12 10 08 PM

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions