* 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.
This commit is contained in:
James Henstridge 2008-01-21 05:59:03 +00:00
parent 864d107325
commit 9fa039326c
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2008-01-21 James Henstridge <james@jamesh.id.au>
* 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.

View File

@ -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