Creating PROJ projections is specially slow for PROJ6, so
we want to avoid recalculating them as much as possible
This is specially important for ST_Buffer(geography) since
it decides the SRID, and thus the projection, dinamically
based on the geometry position around the globe.
References #4372
git-svn-id: http://svn.osgeo.org/postgis/trunk@17542
b70326c6-7e19-0410-871a-
916f4a2858ee
PROJSRSCacheItem;
/* PROJ 4 lookup transaction cache methods */
-#define PROJ_CACHE_ITEMS 8
+#define PROJ_CACHE_ITEMS 128
/*
* The proj4 cache holds a fixed number of reprojection
*/
static char *spatialRefSysSchema = NULL;
-
/*
* PROJ 4 backend hash table initial hash size
* (since 16 is the default portal hash table size, and we would
* typically have 2 entries per portal
- * then we shall use a default size of 32)
+ * then we shall use a default size of 256)
*/
-#define PROJ_BACKEND_HASH_SIZE 32
-
+#define PROJ_BACKEND_HASH_SIZE 256
/**
* Backend PROJ hash table