Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Cache FixedOffsetTimezone instances

#95

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 FixedOffsetTimezone repr is wrong for negative offsets being applied first. It could be easily reworked if the earlier patch isn't accepted for some reason.

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

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. Daniele Varrazzo
    Daniele Varrazzo
    • State changed from new to resolved

    Merged, thank you!

    January 30th, 2012 @ 01:32 PM