mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-11-02 08:47:38 +03:00
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 | ||