Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey,
I really want to be able to edit the cache. So I started refactoring a bit. Two things:
As you can see, I started to replace the Arc<> with just clones of String and PathBuf. Usage was inconsistent over the files and it seems unnecessary. I assume you wanted to gain speed/save RAM? Copying FFmpeg Param struct even over like 20 samples and 10 CRF search runs should be negligible RAM usage compared to what the video encoder takes, and speed should also not nearly be a bottleneck to any use case. If anything, the whole thread-safe accessing over tokyo threads and mutex locking could make things slower, compared to cheap
memcpy
s (atleast thats my understanding). Would you be ok with me simplifying those structs?Can I ask why you use sled? Again, performance should not be an issue (a few ms lookup vs minutes to hours of encoding), and with JSON we have the possibility to
Would you allow me to change the backend to JSON (or similar)? It would probably make things easier instead of maintaining two formats (and should also make development alot easier since you can just look at the runs directly).
I don't want to come of as criticizing, I'm sure you noticed I enjoy working with and on your program and design decisions in the start are hard if not impossible to get right :) so thanks again!