Skip to main content

read_run_archive

Function read_run_archive 

Source
pub fn read_run_archive(run_id: &str) -> Option<Vec<RunRecord>>
Expand description

Read + parse a run’s portable archive (<run_dir>/run.lvr), returning its records, or None if the archive is missing or unreadable.

Materializes the whole journal. For anything that only walks the timeline (the history API, journal search highlights), prefer visit_run_archive: a mature run’s journal is tens of MB, and parsing it whole per request was the API’s single largest transient allocation.