Python 3

Yeah, I spent an entire Saturday upgrading this blog to use Python 3. What a great use of my time…. This includes about 5 hours I spent switching the site to use FastCGI as the entry point instead of Passenger, only to switch it right back to Passenger. (Kind of glad I did, actually, as the FastCGI required a delicately tuned set of mod_rewrite rules. However, it can cause an annoying delay when first loading my page because Passenger has to spawn a new interpreter to use Python 3, and to make matters worse my hosting provider kills the interpreter after only a few minutes.)

Anyway, there’s (kind of) a reason for it. I have a separate need to host a different web application, which would have required me to set up a new Python environment, so I figured I might as well take care of the blog while I was at it. (I’ll cover the new app in a later post for my Faithful Readers.)

Another good thing: I diagnosed an issue where every page load was sending upwards of 50 queries to the MySQL database. Now it sends only a few. That usually makes it faster even if it has to spawn a new Python 3.

Leave a Reply

Your email address will not be published. Required fields are marked *

Frontier Theme