- 05 Aug, 2021 6 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
This way, we save the overhead for acquiring the tag_pool_lock.
-
Cebtenzzre authored
Also, use RemoveAll() instead of directly clearing TagBuilder::items in most cases, as its elements represent references that must be released. Closes #1023
-
Cebtenzzre authored
-
Cebtenzzre authored
-
Cebtenzzre authored
-
- 15 Apr, 2021 1 commit
-
-
Max Kellermann authored
This reverts commit 1532983f. This optimization was bad because now all strings match if they are a prefix of another string, and this caused collisions in the tag string pool, corrupting the database.
-
- 04 Mar, 2021 1 commit
-
-
Rosen Penev authored
Shorter. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 07 Feb, 2021 1 commit
-
-
vkostas authored
Conductor was incorrectly saved to Performer tag in MPD database
-
- 01 Jan, 2021 1 commit
-
-
Max Kellermann authored
-
- 01 Jul, 2020 1 commit
-
-
Max Kellermann authored
-
- 30 May, 2020 1 commit
-
-
Rosen Penev authored
The ones in std have overloads for const char/char. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 27 Apr, 2020 1 commit
-
-
Max Kellermann authored
Fixes breakage of non-ASCII characters, regression from commit cc72ceb3 Fixes https://github.com/MusicPlayerDaemon/MPD/issues/842
-
- 24 Apr, 2020 7 commits
-
-
Max Kellermann authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/838
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
This reduces resource waste for resizing the std::vector in most cases.
-
Max Kellermann authored
-
Max Kellermann authored
Optimizes a few nanoseconds from the common code path.
-
Max Kellermann authored
-
- 22 Apr, 2020 1 commit
-
-
geneticdrift authored
Closes https://github.com/MusicPlayerDaemon/MPD/issues/832
-
- 08 Apr, 2020 2 commits
-
-
Max Kellermann authored
Eliminates lots of overhead.
-
Rosen Penev authored
std::all_of becomes constexpr in C++20. I'm not sure it results in better performance. Found with useStlAlgorithm Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 02 Apr, 2020 1 commit
-
-
Max Kellermann authored
This consumes more memory (plus 48 kB on 32 bit systems), but reduces the number of hash collisions, speeding up MPD startup with large databases.
-
- 19 Mar, 2020 1 commit
-
-
Rosen Penev authored
Found with modernize-use-default-member-init Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 16 Mar, 2020 1 commit
-
-
Rosen Penev authored
[[maybe_unused]] (introduced in C++17) is standard C++. https://clang.llvm.org/docs/AttributeReference.html#maybe-unused-unused says that this is equivalent to the GNU unused attribute. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 13 Mar, 2020 3 commits
-
-
Max Kellermann authored
-
Rosen Penev authored
The former is deprecated by C++14. The standard says they are the same: The header defines all types and macros the same as the C standard library header<stdint.h>. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
The former is deprecated with C++14. The standard says both are the same: The contents and meaning of the header<cstddef>are the same as the C standard library header<stddef.h>,except that it does not declare the type wchar_t, that it also declares the type byte and its associated operations (21.2.5), and as noted in 21.2.3 and 21.2.4. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 12 Mar, 2020 1 commit
-
-
Rosen Penev authored
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 11 Mar, 2020 1 commit
-
-
Max Kellermann authored
Similar to commits e8f2f980 and ff1ff1e5 Closes https://github.com/MusicPlayerDaemon/MPD/issues/783
-
- 04 Feb, 2020 1 commit
-
-
Max Kellermann authored
This doesn't work because IterableSplitString() returns its elements by value. Fixes clang warning: loop variable 'i' is always a copy because the range of type 'IterableSplitString' (aka 'BasicIterableSplitString<char>') does not return a reference [-Werror,-Wrange-loop-analysis]
-
- 02 Feb, 2020 1 commit
-
-
Rosen Penev authored
Found with performance-unnecessary-value-param Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 18 Jan, 2020 4 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
There's just one caller, i.e. ScanGenericTags(), which is documented to throw exceptions.
-
Max Kellermann authored
-
- 16 Dec, 2019 1 commit
-
-
Max Kellermann authored
-
- 05 Nov, 2019 1 commit
-
-
Max Kellermann authored
-
- 25 Oct, 2019 1 commit
-
-
smutbert authored
-