I've just removed pytz from this blog.
There are a couple of reasons I'd like to state:
- It is too big.
- Loading the module takes too long.
You may say say we can get around the first issue (taking into account
AppEngine's 1000-file-limitation) by zipping the
and patching the
open_resource function (since the old
doesn't work anymore). Doing so brings us to the second issue.
On my development server, hitting the homepage for the first time would
take a few more seconds than what I like to wait when testing small
changes and checking the logs it was clear that it got stuck loading the
zoneinfo.zip file. Also, checking the dashboard for this blog one
could see some high cputime raises from time to time and my cpu
consumption was growing much faster than expected.
Given one of the sayings from software development features best practices: "Never take away a feature. Ever. Even if your users don't use it.", I've started browsing for lighter and cheaper alternatives.
Not long later, I find one of those useful services which I never heard about: json-time, which given a timezone, returns it's current time. And that's decided! Took me a couple of minutes to find out about Django's simplejson, which is available on AppEngine.
Pytz still rocks, but it would be really nice if it was included on AppEngine's environment (or a library with the same functionality was added).