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)
|
ver 0.21.22 (not yet released)
|
||||||
* database
|
* database
|
||||||
- simple: reduce I/O overhead while reading database file
|
- simple: optimize startup
|
||||||
* input
|
* input
|
||||||
- curl: fix streaming errors on Android
|
- curl: fix streaming errors on Android
|
||||||
* playlist
|
* playlist
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
Mutex tag_pool_lock;
|
Mutex tag_pool_lock;
|
||||||
|
|
||||||
static constexpr size_t NUM_SLOTS = 4093;
|
static constexpr size_t NUM_SLOTS = 16127;
|
||||||
|
|
||||||
struct TagPoolSlot {
|
struct TagPoolSlot {
|
||||||
TagPoolSlot *next;
|
TagPoolSlot *next;
|
||||||
|
|
Loading…
Reference in New Issue