Tag writing inefficient?

Lukáš Lalinský lalinsky at gmail.com
Sun Sep 6 11:42:53 CEST 2009


On Sun, Sep 6, 2009 at 11:30 AM, Elias Probst<mail at eliasprobst.eu> wrote:
> On Sunday 06 September 2009 11:14:48 Lukáš Lalinský wrote:
>> There is a padding block in FLAC files, that can be used for this
>> purpose. TagLib 1.5 and older doesn't know how to use this, and has to
>> resize the file every time. TagLib 1.6 (still to be released, there is
>> RC out) will use the padding block if it's there and is large enough
>> to hold the tags, so in most cases it will not need to resize the
>> file.
>
> Another question just came to my mind:
> If a file doesn't have padding block yet, will taglib add one, when it has to
> rewrite the whole file anyways?
> So future tagging operations will just have to rewrite the padding block?

Correct, if there isn't a padding block yet (at all, or not large
enough), it will write at least 4096b large padding after the tag. So
next tag update should be quick again.

-- 
Lukas Lalinsky
lalinsky at gmail.com


More information about the taglib-devel mailing list