From d2cf74027c2c252181ab16c1348281c252665353 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 18 Jan 2014 19:08:39 +0100 Subject: 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%. --- src/SongFilter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/SongFilter.cxx') diff --git a/src/SongFilter.cxx b/src/SongFilter.cxx index 0cf2b1b2f..dccbab925 100644 --- a/src/SongFilter.cxx +++ b/src/SongFilter.cxx @@ -149,7 +149,7 @@ SongFilter::Item::Match(const Song &song) const return StringMatch(uri.c_str()); } - return song.tag != NULL && Match(*song.tag); + return Match(song.tag); } bool -- cgit v1.2.3