Skip to content

Parallelize FrameSource initialization with ThreadPoolExecutor#961

Merged
mprib merged 1 commit intomainfrom
fix/parallel-frame-source-init
Mar 9, 2026
Merged

Parallelize FrameSource initialization with ThreadPoolExecutor#961
mprib merged 1 commit intomainfrom
fix/parallel-frame-source-init

Conversation

@mprib
Copy link
Copy Markdown
Owner

@mprib mprib commented Mar 9, 2026

Each FrameSource runs a keyframe scan on init, which is I/O-bound. With multiple cameras this was sequential, taking N × scan_time. Now all cameras initialize in parallel threads, reducing wall time to roughly the cost of the slowest single camera.

Each FrameSource runs a keyframe scan on init, which is I/O-bound.
With multiple cameras this was sequential, taking N × scan_time.
Now all cameras initialize in parallel threads, reducing wall time
to roughly the cost of the slowest single camera.
@mprib mprib merged commit dd355d6 into main Mar 9, 2026
6 of 9 checks passed
@mprib mprib deleted the fix/parallel-frame-source-init branch March 9, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant