Skip to content

Faster unfragment. #57

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

Merged
merged 1 commit into from
Oct 8, 2021
Merged

Faster unfragment. #57

merged 1 commit into from
Oct 8, 2021

Conversation

j0sh
Copy link
Contributor

@j0sh j0sh commented Oct 7, 2021

The old implementation was N^2 which could take a long time for
subtitles with many items. Break out of the loop after we are
beyond the end time for the item that is being compared.

Also support unfragmenting nested items, eg:

1 -> 4 and 2 -> 5 will be combined into 1 -> 5.

The old implementation was N^2 which could take a long time for
subtitles with many items. Break out of the loop after we are
beyond the end time for the item that is being compared.

Also support unfragmenting nested items, eg:

1 -> 4 and 2 -> 5 will be combined into 1 -> 5.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 76.478% when pulling f404ff4 on j0sh:ja/fast-unfragment into 39d5008 on asticode:master.

@asticode asticode merged commit aa9412f into asticode:master Oct 8, 2021
@asticode
Copy link
Owner

asticode commented Oct 8, 2021

FYI I've created a v0.19.0 tag

@j0sh j0sh deleted the ja/fast-unfragment branch October 8, 2021 14:55
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.

3 participants