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

Enhance internal decoder performance #26

Merged
merged 11 commits into from
Oct 19, 2024
Merged

Enhance internal decoder performance #26

merged 11 commits into from
Oct 19, 2024

Conversation

ecdye
Copy link
Owner

@ecdye ecdye commented Oct 19, 2024

This will improve the performance of the internal decoder significantly
by taking advantage of unsafe pointers in Swift to reduce the memory
overhead and processing time for decoding input files. This also adds
compatibility that is needed in order to move forward with #17.

@ecdye
Copy link
Owner Author

ecdye commented Oct 19, 2024

@timj here is a compilation of my efforts to improve the internal decoder's speed. I decided to make them separate from #17 as they are related, but also this can be merged in advance. Let me know if you observe any issues with PGS or VobSub with these changes. I think I didn't break anything but it's always good to check.

This also add proper attribution for the source of the test files.

Signed-off-by: Ethan Dye <[email protected]>
Signed-off-by: Ethan Dye <[email protected]>
Signed-off-by: Ethan Dye <[email protected]>
@ecdye ecdye merged commit 7e8d34e into main Oct 19, 2024
4 checks passed
@ecdye ecdye deleted the performance branch October 19, 2024 22:38
@timj
Copy link

timj commented Oct 21, 2024

The internal decoder is much much faster. Thank you.

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.

2 participants