[Zope3-dev] mini-RFC: times and timezones
Gary Poster
gary at zope.com
Thu Feb 24 14:54:44 EST 2005
On Feb 24, 2005, at 12:32 PM, Tim Peters wrote:
> [Tim Peters]
> ...
>>> A consideration I didn't see mentioned is that lots of work went into
>>> ensuring that datetime objects have efficient pickle representations
>>> (small size, and very fast to pickle and unpickle). Of course this
>>> works best for naive datetimes -- pickling an aware datetime drags in
>>> all the machinery for pickling its instance of a tzinfo subclass too.
>
> [Gary Poster]
>> I am under the impression that the datetimeutils tzinfo
>> implementations
>> are pickle-friendly as well. That's what I was intending to use as
>> the
>> basis of zope.i18n.utc.
<cool pickle analysis>
zope.i18n utf will be shorter than zope.app.dateutils tzinfo at the
very least :-).
I'm hoping that a singleton (the utf tzinfo) will pickle even smaller.
I'll get to it as soon as I can with everything else going on.
> BTW, I don't claim that pickle size should drive anything here -- I
> just wanted people to be aware that it is one of the tradeoffs
> involved.
Understood.
Thanks
Gary
More information about the Zope3-dev
mailing list