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
Clean up dead code, fix broken bench, and trim hot-path overhead
Fix the workspace build (framed_to_adder_hd.rs bench used removed
Framed/SimulProcArgs/SimulProcessor APIs from the arithmetic-coding
refactor). Remove dead code surfaced by clippy: the entirely-unused
d_controller module, ~390 lines of commented-out Bevy-era UI in
adder-viz, unused struct fields/test helpers, and panic/todo! trait
impls kept only to satisfy bounds. Fix clippy warnings (unused
vars/imports, swallowed Results, a vec![x; n] pattern that silently
dropped Vec capacity) and strip stray dbg!/eprintln! debug leftovers,
including one firing every frame in a hot path.
Performance: replace a linear D_SHIFT scan in the per-event pixel
integration path with a leading_zeros()-based bit-length lookup,
preallocate a 3D pixel buffer instead of growing it via nested
push(), and write DVS text events directly instead of building an
intermediate String per event.
All existing tests pass; cargo fmt and clippy are clean.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments