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

Replace subprocess usage with os module for better performance and maintainability #6298

Merged
merged 6 commits into from May 2, 2023

Conversation

skrashevich
Copy link
Contributor

This pull request refactors the frigate/util.py and frigate/record/cleanup.py files to replace the usage of subprocess with Python's built-in os module for interacting with the filesystem. This change improves performance by avoiding the overhead of spawning new processes and simplifies the codebase by using native Python functions. Additionally, this update provides better error handling and maintainability.

@netlify
Copy link

netlify bot commented Apr 27, 2023

Deploy Preview for frigate-docs canceled.

Name Link
🔨 Latest commit 42bd5bb
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/64506c081de1e600086dfd24

@skrashevich skrashevich force-pushed the patch-230428 branch 3 times, most recently from cc81f9a to 7c8af6a Compare April 28, 2023 00:28
@skrashevich
Copy link
Contributor Author

Fixed non-obvious calculation problems on some systems

@NickM-27
Copy link
Sponsor Collaborator

Need to fix conflicts dev now that the go2rtc and record process were added to system page

@blakeblackshear blakeblackshear merged commit b38c9e8 into blakeblackshear:dev May 2, 2023
11 checks passed
@skrashevich skrashevich deleted the patch-230428 branch May 2, 2023 02:33
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.

None yet

3 participants