Top | On Culinate

Speeding up member page generation

(post, James Berry)

I just deployed a new version of the site that, nestled amidst some bug fixes here and there, speeds up user pages some. Instead of fetching user avatar images one by one for the various friends we're going to display, the code now prefetches the avatars all at once from the image cache, then uses those cached images as the users are displayed.

This turns 10 or 20 database queries into one, and results in a significant speed up in rendering of the user page.

Other small changes include adding the ability for members to flag blog posts (you've already been able to flag editorial articles), and changing the wording of the "Publish" button on the blog post editor to "Save and Publish" which is more clear and more a parallel to the "Save as Draft" button.