[sr-dev] git:master:877b2c8f: core: pv - increased the size for pv and transformation hash tables

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 21 11:06:41 CET 2017


Module: kamailio
Branch: master
Commit: 877b2c8fc40cd2e385fae7da713ef63dbd9bbabd
URL: https://github.com/kamailio/kamailio/commit/877b2c8fc40cd2e385fae7da713ef63dbd9bbabd

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-11-21T10:12:07+01:00

core: pv - increased the size for pv and transformation hash tables

---

Modified: src/core/pvapi.c
Modified: src/core/pvar.h

---

Diff:  https://github.com/kamailio/kamailio/commit/877b2c8fc40cd2e385fae7da713ef63dbd9bbabd.diff
Patch: https://github.com/kamailio/kamailio/commit/877b2c8fc40cd2e385fae7da713ef63dbd9bbabd.patch

---

diff --git a/src/core/pvapi.c b/src/core/pvapi.c
index 7e3d7b9b4b..931d35715a 100644
--- a/src/core/pvapi.c
+++ b/src/core/pvapi.c
@@ -40,8 +40,8 @@
 #include "pvapi.h"
 #include "pvar.h"
 
-#define PV_TABLE_SIZE	32  /*!< pseudo-variables table size */
-#define TR_TABLE_SIZE	16  /*!< transformations table size */
+#define PV_TABLE_SIZE	64  /*!< pseudo-variables table size */
+#define TR_TABLE_SIZE	32  /*!< transformations table size */
 
 
 void tr_destroy(trans_t *t);
diff --git a/src/core/pvar.h b/src/core/pvar.h
index 62ab78267f..3e838e20f8 100644
--- a/src/core/pvar.h
+++ b/src/core/pvar.h
@@ -240,7 +240,7 @@ typedef struct _pv_cache
 	struct _pv_cache *next;
 } pv_cache_t;
 
-#define PV_CACHE_SIZE	32  /*!< pseudo-variables cache table size */
+#define PV_CACHE_SIZE	64  /*!< pseudo-variables cache table size */
 
 pv_cache_t **pv_cache_get_table(void);
 




More information about the sr-dev mailing list