Repository navigation
ID3v2: Unify generic conversions - #576
Merged
Merged
Conversation
Serial-ATA
marked this pull request as draft
November 13, 2025 04:38
`Tag::save_to()` and `Into::<Id3v2Tag>::into(tag)` would take different paths, causing frames to not get merged (and possibly other weird behavior). Now, both take the same path. All frames have been updated to use `Cow`, to avoid allocations in the `Tag::save_to()` path (unless absolutely necessary, like for track numbers). This should be easier to maintain now that everything's unified. And possibly more efficient, since it's no longer cloning everything.
Serial-ATA
force-pushed
the
id3v2-conversions
branch
from
November 13, 2025 15:30
19cfc91 to
e5af266
Compare
Serial-ATA
marked this pull request as ready for review
November 13, 2025 15:30
Contributor
|
After writing |
Owner
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Tag::save_to()andInto::<Id3v2Tag>::into(tag)would take different paths, causing frames to not get merged (and possibly other weird behavior). Now, both take the same path.All frames have been updated to use
Cow, to avoid allocations in theTag::save_to()path (unless absolutely necessary, like for track numbers).This should be easier to maintain now that everything's unified. And possibly more efficient, since it's no longer cloning everything.
closes #349