Skip to content

Conversation

@deanlee
Copy link
Contributor

@deanlee deanlee commented Dec 2, 2025

get_buffer() was copying the entire buffers vector on every call:

auto b = buffers[type]; // Creates a full copy of vector<VisionBuf*>

This PR switches to a const& to avoid the copy, reducing overhead.

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