From 9fa039326c1d0ac92b22fe58a9ff6296533132d1 Mon Sep 17 00:00:00 2001 From: James Henstridge Date: Mon, 21 Jan 2008 05:59:03 +0000 Subject: [PATCH] * setup.cfg (define): remove PSYCOPG_DISPLAY_SIZE from default list of defines, as discussed on mailing list. It slows down queries with very little benefit. --- ChangeLog | 4 ++++ setup.cfg | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index adec146d..fbf7cc83 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-01-21 James Henstridge + * setup.cfg (define): remove PSYCOPG_DISPLAY_SIZE from default + list of defines, as discussed on mailing list. It slows down + queries with very little benefit. + * psycypg/*.h: apply HIDDEN to all global variables and functions that should not be exported from the module. This results in a 5% reduction in code size and shortens the dynamic symbol table. diff --git a/setup.cfg b/setup.cfg index 3d753738..26c5693f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [build_ext] -define=PSYCOPG_EXTENSIONS,PSYCOPG_DISPLAY_SIZE,PSYCOPG_NEW_BOOLEAN,HAVE_PQFREEMEM,HAVE_PQPROTOCOL3,PSYCOPG_DEBUG +define=PSYCOPG_EXTENSIONS,PSYCOPG_NEW_BOOLEAN,HAVE_PQFREEMEM,HAVE_PQPROTOCOL3,PSYCOPG_DEBUG # PSYCOPG_EXTENSIONS enables extensions to PEP-249 (you really want this) # PSYCOPG_DISPLAY_SIZE enable display size calculation (a little slower) # HAVE_PQFREEMEM should be defined on PostgreSQL >= 7.4