Get It Faster

For the past 8 weeks or so, I’ve been slowly re-coding parts of my website to improve performance and fix a few bugs.  The work has been focused mainly on my visitor logger and my weblog script, with one big exception: I switched the entire site from PHP to pure SSI+Perl.  I switched mainly because SSI/Perl can do everything that I had been using PHP for, with the added bonus that SSI is built into Apache and Perl is installed on every Linux server already (and easily installable on Win32 systems), whereas PHP is often not installed by default and is somewhat of a pain to configure.  (At least compared to Perl, which requires no configuration whatsoever.)

If none of that means anything to you, you can still appreciate the results of the performance improvements and bugfixes.  The site loads much faster now, because the visitor logger now automatically rotates its logfiles and caches the site stats, so it’s not scanning through tens of thousands of lines of logfile every time a page is loaded.  (But don’t look at the rewritten stats page yet; the tables still need to be organized into a more presentable layout.)

On the bug-fixing tip, the blogger’s spell-checker now properly ignores any special tags (notably links) in posts, so the preview no longer barfs when trying to display them.  I also fixed a bug that truncated any posts that contained both an image and a double-quote character, but of course you’ve never noticed that bug since I don’t allow people to post images unless they are logged in with an admin account, and only I have such an account around here :)  (Well, the blogger on the photos pages allows image-posting even for not-logged-in users.)

I also fixed the bug whereby if you entered a name into the site that contained spaces, the spaces would be displayed in their encoded form, as ’%20’ instead of ’ ’.  The fix was trivial, notwithstanding allegations that I had been "making excuses" for it, ostensibly because I didn’t feel like fixing it.  In the process, I also discovered an off-by-one bug in Apache, which will be fixed in the next release of that program.

In other news, my trusty old (OK, maybe just "old") 233mmx system recently decided to start booting again, so I’ll now start to debug the strange disappearing-text bug that some people have reported when using IE.

Posted by Anthony on 1 reply

Comments:

01. Jan 25, 2005 at 10:58pm by DT:

I can truly notice the performance. Your site use to crawl before but now it doesn’t. I’m also working on my website performance.

Reply to this message here:

Your name
Email
Website (optional)
Subject

HomeCreate PostArchivesLoginCMS by Encodable ]