Module: kamailio
Branch: master
Commit: e6b183a1ec3b267cc25040a9b67a1c151ee85555
URL:
https://github.com/kamailio/kamailio/commit/e6b183a1ec3b267cc25040a9b67a1c1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-07-19T09:50:21+02:00
core: pv - increased the size for vars and transformations tables
---
Modified: src/core/pvapi.c
Modified: src/core/pvar.h
---
Diff:
https://github.com/kamailio/kamailio/commit/e6b183a1ec3b267cc25040a9b67a1c1…
Patch:
https://github.com/kamailio/kamailio/commit/e6b183a1ec3b267cc25040a9b67a1c1…
---
diff --git a/src/core/pvapi.c b/src/core/pvapi.c
index 28429406c6..1830ba0a2d 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 64 /*!< pseudo-variables table size */
-#define TR_TABLE_SIZE 32 /*!< transformations table size */
+#define PV_TABLE_SIZE 512 /*!< pseudo-variables table size */
+#define TR_TABLE_SIZE 256 /*!< transformations table size */
void tr_destroy(trans_t *t);
diff --git a/src/core/pvar.h b/src/core/pvar.h
index a61072ff6b..f225cbc93a 100644
--- a/src/core/pvar.h
+++ b/src/core/pvar.h
@@ -242,7 +242,7 @@ typedef struct _pv_cache
struct _pv_cache *next;
} pv_cache_t;
-#define PV_CACHE_SIZE 64 /*!< pseudo-variables cache table size */
+#define PV_CACHE_SIZE 512 /*!< pseudo-variables cache table size */
pv_cache_t **pv_cache_get_table(void);