Files
bincio-activity/bincio/extract
Davide Scaini 290eef6c72 metrics: guard against corrupted time streams causing OOM
Strava originals with absolute Unix timestamps stored as elapsed-second
offsets produce a t_max of ~1.6 billion. compute_mmp and compute_best_efforts
both create dense 1Hz arrays via range(t_min, t_max+1), which for a 1.6B
span allocates 44+ GB and OOM-kills the process. Add a >1-week sanity
check and return None early for corrupt streams.

Root cause: old Strava activities (seen from 1970-epoch start_date)
where the time stream contains absolute Unix timestamps instead of
elapsed seconds.
2026-04-15 14:06:20 +02:00
..
2026-03-28 13:59:36 +01:00
2026-04-10 18:13:49 +02:00
2026-04-10 18:13:49 +02:00
2026-04-12 15:36:21 +02:00
2026-04-10 22:01:44 +02:00
2026-04-10 22:01:44 +02:00
2026-04-06 22:25:57 +02:00
2026-04-11 08:13:27 +02:00