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

Deduplication #35

Merged
merged 9 commits into from
Nov 2, 2024
Merged

Deduplication #35

merged 9 commits into from
Nov 2, 2024

Conversation

Z-Kris
Copy link
Contributor

@Z-Kris Z-Kris commented Nov 2, 2024

De-duplicates the model and transcribers so there's only ever one set of classes for those, using proper versioning to deal with revision-specific differences. This refactoring quite literally halved the lines-of-code in RSProx, and that's with just 4 revisions. Over time it would've become an unmaintainable mess, especially for anyone wanting to do changes in the transcribers.

The decoder remains the only thing that is now per-revision. In the future, we could potentially look into de-duplicating the @consistent classes, but this has another problem that needs to be solved on-top of it to do such a refactoring. For now, this is more than good enough.

@Z-Kris Z-Kris self-assigned this Nov 2, 2024
@Z-Kris Z-Kris merged commit d8e5849 into master Nov 2, 2024
3 checks passed
@Z-Kris Z-Kris deleted the deduplication branch November 2, 2024 20: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.

1 participant