You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: vectorize counter/checksum detection (183s -> 2.8s on 500k frames)
Found by testing on a real 500k-frame Alfa Romeo Giulia capture (ReCAN
dataset): the iterrows × algorithms × bytes loop took 183s. Replaced with a
per-ID numpy pass — build the (N,8) byte matrix once and compute every
algorithm for every byte via total_xor ^ byte / (total_sum - byte) etc.
(XOR is self-inverse; sums are cumulative). Identical results (30 counters,
32 checksums, 34 IDs), 65x faster. Existing NaN-safety tests still pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments