mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 08:56:34 +03:00
cb1d163f4f
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 |
||
---|---|---|
.. | ||
__init__.py | ||
errorcodes.py | ||
extensions.py | ||
extras.py | ||
pool.py | ||
psycopg1.py | ||
tz.py |