This project is archived and is in readonly mode.

#95 ✓resolved
Menno

Cache FixedOffsetTimezone instances

Reported by Menno | January 25th, 2012 @ 04:42 PM

The attached patch avoids creating a new FixedOffsetTimezone instance if one with the same offset and name has been created before. This will save memory when returning many rows containing "timestamp with timezone" columns, and also improves comparability.

Note that this patch relies on the patch attached to #94 being applied first. It could be easily reworked if the earlier patch isn't accepted for some reason.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="https://github.com/psycopg/psycopg2/issues">the new tracker</a>.
<br/>
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.

Shared Ticket Bins

Attachments

Pages