You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The number of classes in postgresql.exceptions adds measurable overhead to the startup time of processes importing postgresql. Constructing the exception classes upon use would eliminate this initial overhead and memory footprint (CPython types being relatively large).
The text was updated successfully, but these errors were encountered:
Python 3.7 adds getattr/dir support to modules. This should allow a portable means for managing lazy exception creation. This should probably be a 2.0 feature that adds a 3.7 requirement.
The number of classes in postgresql.exceptions adds measurable overhead to the startup time of processes importing postgresql. Constructing the exception classes upon use would eliminate this initial overhead and memory footprint (CPython types being relatively large).
The text was updated successfully, but these errors were encountered: