summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/hashmap.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-07-23 22:35:30 +0000
committerLennart Poettering <lennart@poettering.net>2006-07-23 22:35:30 +0000
commitc85351ba054045fd4fad1d8825c3d8c6e036c93b (patch)
tree7c416d39de2cde7056dfcde30091c07a53c91d99 /src/pulsecore/hashmap.c
parent95eee87380dfbb648243da456dfb204cd5009441 (diff)
as a result of memory profiling with valgrind/massif: decrease default hash table size from 1024 to 127. the hashtables are sparsely filled most of the time, so there is no point in allocating to much memory by default.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1140 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/hashmap.c')
-rw-r--r--src/pulsecore/hashmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/hashmap.c b/src/pulsecore/hashmap.c
index 2cddba1d..6e0e6b02 100644
--- a/src/pulsecore/hashmap.c
+++ b/src/pulsecore/hashmap.c
@@ -34,7 +34,7 @@
#include "hashmap.h"
-#define BUCKETS 1023
+#define BUCKETS 127
struct hashmap_entry {
struct hashmap_entry *next, *previous, *bucket_next, *bucket_previous;