psycopg2/lib
Marko Kreen cb1d163f4f lazy import for uuid module
Attached patch moves uuid import from inside try-except
to register_uuid function.  Reason: uuid module import is *very*
heavy.  It goes into OS searching for various .dll/.so libraries,
lauches 'ldconfig' and so on...

With this patch, 200x python -c 'import psycopg2.extras'
goes from 22s to 7s.  (plain 'import psycopg2' is 6s)

--
marko
2011-06-28 17:28:43 +02:00
..
__init__.py Fixed version check 2011-06-04 14:21:18 +01:00
errorcodes.py Added PostgreSQL 9.0 error codes. 2010-09-23 23:43:23 +01:00
extensions.py Merge branch 'neg-escape' into devel 2011-05-30 22:09:23 +01:00
extras.py lazy import for uuid module 2011-06-28 17:28:43 +02:00
pool.py Some light cleanup for Py3 conversion. 2010-12-21 04:02:13 +00:00
psycopg1.py Changes license to LGPL3 + OpenSSL exception on all source files 2010-02-12 23:34:53 +01:00
tz.py Added evaluable representation for the FixedOffsetTimezone object. 2010-05-15 14:27:23 +01:00