PowerBlogs.Com Development

Faster posting

Posting and editing should now be a lot faster than they have been. This is partly due to a more aggressive database maintenance schedule, but much more to a number of performance optimizations.

While categories are a good feature, they substantially increase the amount of work to be done. Post-chains similarly are a great feature but at the cost of increased complexity — when a post is joined into a chain, every post in that chain needs to be re-written to reflex the new member of the chain. While this creates work, it also creates opportunities for redundantly rewriting pages, which had been going on. To ensure that every page which needs to be rewritten is rewritten without sacrificing too much speed, most of the important functions are now implemented with a scheduling/marshalling paradigm, so that scheduling a given archive page for writing multiple times only causes it to be written once. Between this and a bit of optimization to eliminate some redundant function calls, posting and editing should be dramatically faster than they have been.

(Geek note: while writing your own code profiler isn't exactly easy (hint: if you're going to try it, make sure to disable auto-loading or you're in for a world of pain), it sure is fun.)