Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aggressively purge video data when its unused (#7592)
### What Before, we'd only remove `re_video` objects on memory purges. With this change we do it immediately when a video is unused for a frame. Empirically that's the better strategy given that we're already purging decoders eagerly (which we have to do pretty much because we create new ones for every little preview) since it takes a lot longer to get decode a video than it takes to parse the mp4. https://github.com/user-attachments/assets/2a841caa-6c7b-4651-ac84-d91135ca9989
- Loading branch information