Nov 21
Friday

jwCompactor Demo

As you can see this is a demo of the jwCompactor module which allows you to place several modules into a single position. The modules are packed together using jQuery and Anicollapse. So instead of a chunky collapse animation, there is a smooth transitional animation to hide unused modules.
As you can see this is a demo of the jwCompactor module which allows you to place several modules into a single position. The modules are packed together using jQuery and Anicollapse. So instead of a chunky collapse animation, there is a smooth transitional animation to hide unused modules.
Are you benchmarking your code?
Written by Adam McHugh   
Monday, 15 September 2008 15:10

Through my few years of being a professional PHP programmer it has become apparent that not a lot of people benchmark their code. And therefore, they have no idea where a project could be optimised or sped up.

There is a simple solution. From the PHPClasses.org website there is a class called Benchmark, and I have been using it for all of my custom development lately. So what does it do and how can it help you write more efficient code?

 

The class Benchmark adds markers inside your code where the current execution time is recorded. For every marker you insert into your code you assign a name for the marker and once the application completes you can output the debug code.

I found this particularly useful when developing a Facebook application where latency and execution time must be kept as low as possible. Basically, while using Benchmark I could alter things like my MySQL queries to make them run faster and thus reduce overhead and increase page load speed!

The class can be downloaded from http://www.phpclasses.org/browse/package/2244.html and was written by Julien Pachet. And i might add, it is a very, very useful class to have included in your development stages of a project.

 

Add your comment

Your name:
Your email:
Your website:
Subject:
Comment: