浏览代码

core: pv - increased the size for vars and transformations tables

Daniel-Constantin Mierla 6 年之前
父节点
当前提交
e6b183a1ec
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      src/core/pvapi.c
  2. 1 1
      src/core/pvar.h

+ 2 - 2
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);

+ 1 - 1
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);