Linux: Improving Interactivity

Kernel Trap reports on recent activity to make Linux more responsive. It’s looking good!

I’d handwavingly describe both your patch and sched-2.5.64-a5 as 80% solutions, and the combo 95%.” Robert Love agreed, “This is great for me, too. I played around with some mp3 playing and did the akpm-window-wiggle test. It is definitely the smoothest.”

Traffic this morning..

On my way to work this morning I managed to avoid most of the heavy traffic but eventually I got caught as I approached Victoria Cross. I usually come off College Rd on to Orchard Rd and then down to Victoria Cross. Unfortunately traffic is usually heavy at the junction of Orchard Rd and Victoria Cross. Today was no exception. As I waited at the junction, looking left and right I noticed a Flo Gas truck down the road with a large space in front of it and thought, “hmm, maybe if he goes forward I can get in behind him..”, but no, he wasn’t moving because a container truck on the inside lane was too large to overtake safely.

I continued to look left and right when suddenly out of the corner of my eye as I turned right I spotted a car plough straight into the Flo Gas truck! I can still see the back of the car raise itself up off the ground, see flying specks of paint and plastic, and hear the sound of the car crumpling under the impact.

Shocked, I watched for a few seconds before remembering my camera, grabbed it out of it’s bag and turned it on to find a full memory card, a quick change of the memory card later and I snapped a few photos of this unfortunate accident. Nobody was hurt, both drivers got out of their cars and a Garda was on the scene within moments.

The golden benefits of C'ing your PHP

John did more work on his PHP extensions. I find research into performance tuning and benchmarking fascinating. By using the C version of one of his PHP functions John gained a 75% increase in speed! Excellent!
John, can you try both PHP code and C code with PHP Accelerator or some other opcode caching tool? I guess the accelerator won’t affect performance of the C extension, but it may work well on your PHP loops. (but I doubt anywhere near the 75% you experienced with C!)

Rev Jim on b2/Smarty

Someone noticed our work here! Thank you Rev. Jim for the review!
Right now the code is ugly, I simply strapped Smarty on top of b2 in about a week of coding. My initial intention was to make my changes as non-intrusive as possible but that’s not really possible. Michel made a really good job of seperating a large portion of the PHP code from the templates and that made my job so much easier.
I hadn’t thought of the ugly url issue much, but that can be solved reasonably easily through mod_rewrite and/or php.
Making the templates more flexible should be easy too. I was originally going to do so, but I’m wary creating new files on the server so I just listed the ones that could be edited instead. Another requested feature was to go back to the default template, or maybe even offer multiple templates! A version-controlled templating system appeals to the developer in me too!
There’s a few major things to do:

  1. Make URLs nicer.
  2. Reintroduce “Team” logins again, and make it a configurable option in the options web page. I need to document the difference between Team logins and creating a new blog. That will confuse people.
  3. More flexible template system.
  4. Work out how to handle image uploads nicely. That’ll probably come through using a username/images/ folder or something.
  5. Finish integrating Smarty into b2.