Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We love video here #788

Merged

Conversation

rafaellehmkuhl
Copy link
Member

This PR addss some small pre-commits so it gets easier to review the next one, which will change the video recovery logic.

Concurrency is not parallelism, so the comment was technically wrong.
Reduces the chances of collision without being too big.
This event should happen as fast as possible, so if we can do something outside it, we should.

Also, as we are generating a guaranteed-unique hash before starting the recording, and because the chunk count is updated before anything, there's no chance of having two chunks with the same name.
The sorting happens in-place, and the previous syntax could let to think we are creating a copy of the original array, which is not the case.
@rafaellehmkuhl rafaellehmkuhl merged commit 2b9483b into bluerobotics:master Mar 1, 2024
8 checks passed
@rafaellehmkuhl rafaellehmkuhl deleted the make-video-great-again-4 branch March 1, 2024 14:36
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.

"Clear temporary video storage" button is slow and so appears to be broken
2 participants