Song: embed the Tag object statically into class Song
Reduces overhead because we need to manage only one memory allocation. According to valgrind/massif, we save 7%.
This commit is contained in:
@@ -74,8 +74,7 @@ song_print_info(Client &client, const Song &song)
|
||||
if (song.mtime > 0)
|
||||
time_print(client, "Last-Modified", song.mtime);
|
||||
|
||||
if (song.tag != nullptr)
|
||||
tag_print(client, *song.tag);
|
||||
tag_print(client, song.tag);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user