]> code.delx.au - pulseaudio/commitdiff
as a result of memory profiling with valgrind/massif: decrease default hash table...
authorLennart Poettering <lennart@poettering.net>
Sun, 23 Jul 2006 22:35:30 +0000 (22:35 +0000)
committerLennart Poettering <lennart@poettering.net>
Sun, 23 Jul 2006 22:35:30 +0000 (22:35 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1140 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/hashmap.c
src/pulsecore/idxset.c

index 2cddba1d5e2fafeb52f0f0e8813d6bd16c3e1391..6e0e6b0288cc39559b1d026b5d34c6e84acf773f 100644 (file)
@@ -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;
index ddce623a2666aa5a96c9e33ee8b6a408deefc075..d3aec2dea6d9eb7121761eabdaadf30a81fe748b 100644 (file)
@@ -78,7 +78,7 @@ pa_idxset* pa_idxset_new(unsigned (*hash_func) (const void *p), int (*compare_fu
     s = pa_xnew(pa_idxset, 1);
     s->hash_func = hash_func ? hash_func : pa_idxset_trivial_hash_func;
     s->compare_func = compare_func ? compare_func : pa_idxset_trivial_compare_func;
-    s->hash_table_size = 1023;
+    s->hash_table_size = 127;
     s->hash_table = pa_xmalloc0(sizeof(idxset_entry*)*s->hash_table_size);
     s->array = NULL;
     s->array_size = 0;