tag/Pool: enlarge hash table
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.
This commit is contained in:
parent
8270043053
commit
b267ba5f0a
2
NEWS
2
NEWS
|
@ -1,6 +1,6 @@
|
|||
ver 0.21.22 (not yet released)
|
||||
* database
|
||||
- simple: reduce I/O overhead while reading database file
|
||||
- simple: optimize startup
|
||||
* input
|
||||
- curl: fix streaming errors on Android
|
||||
* playlist
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
Mutex tag_pool_lock;
|
||||
|
||||
static constexpr size_t NUM_SLOTS = 4093;
|
||||
static constexpr size_t NUM_SLOTS = 16127;
|
||||
|
||||
struct TagPoolSlot {
|
||||
TagPoolSlot *next;
|
||||
|
|
Loading…
Reference in New Issue