Commit Graph
4 Commits
Author SHA1 Message Date
Daniel-dev22andClaude Opus 4.8 1c9396449e perf(track): add __slots__ to TrackedObjectAttribute
TrackedObjectAttribute is constructed per attribute (face, license plate,
logo, ...) per frame in process_frames. It holds exactly six fixed fields
and is never mutated beyond __init__, so __slots__ removes the per-instance
__dict__.

Measured in the release image: 352 B/instance (56 B object + 296 B __dict__)
-> ~104 B with __slots__, ~70% smaller, on a high-churn per-frame object.

Adds a test asserting no __dict__ and that undeclared attributes raise.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 09:57:01 -04:00
DanielandNicolas Mowen d93d6262ce Use 127.0.0.1 for chroma (#12135) 2024-08-29 20:19:50 -06:00
DanielandGitHub 7e5eb82882 Delete download-models (#10755) 2024-03-30 13:23:32 -06:00
DanielandGitHub cc6e049966 Change multiselect camera icon (#8016)
* CenterFocusString icon

* Add CenterFocusString to multiselect

* Rename CenterFocusString.jsx

* Rename icon and make it smaller

* Rename icon

* Fix lint and use icon
for speech

* remove unused vars

* Remove unused import
2023-10-08 14:30:53 -05:00