mirror of
https://github.com/taglib/taglib.git
synced 2026-05-25 13:08:55 -04:00
[FLAC] Pack hasiXML/hasBEXT with scanned to save padding
Per review feedback on #1364: moving the two new bool flags to the end of FilePrivate, next to the existing `scanned` bool, lets the compiler coalesce the three bytes into the same trailing padding slot. Saves one machine word per FLAC::File instance versus placing the flags mid-struct between bextData and the List<MetadataBlock*>. Pure layout change, no behaviour difference. Test suite still green.
This commit is contained in:
committed by
Urs Fleisch
parent
c32f7c7f86
commit
8fcda2daa2
@@ -72,13 +72,13 @@ public:
|
||||
ByteVector xiphCommentData;
|
||||
String iXMLData;
|
||||
ByteVector bextData;
|
||||
bool hasiXML { false };
|
||||
bool hasBEXT { false };
|
||||
List<FLAC::MetadataBlock *> blocks;
|
||||
|
||||
offset_t flacStart { 0 };
|
||||
offset_t streamStart { 0 };
|
||||
bool scanned { false };
|
||||
bool hasiXML { false };
|
||||
bool hasBEXT { false };
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user