If you’re seeing this short blog, I’ve succesfully changed my site host.

If you’ve been here before and if you have the time, please let me know if the load times are better. They seem to be on my end, but the final answer to that question (the one that counts) should come from my visitors.

Is the site faster now?

View Results

Loading ... Loading ...


Warning: Expect some rough spots as I work out any remaining issues with the site transfer.

-edo
I added a new common library to TSTK for actionMaps.
This common library adds two new (user) methods:

  • ActionMap::bindMulti( %this, %device, %action, %object, %callback );
  • ActionMap::unbindMulti( %this, %device, %action, %object, %callback );
The “bindMulti()” function allows you to bind the same input (key, button, etc.) to more than one callback. Typically, you can only bind one function (or object + method) to any specific input. However, in some cases it is useful to have the ability to bind the same input to more than one function (or object + method). For example. If you wanted to allow a key press to fire multiple weapons, you could simply use “bindMulti()” to bind the same key to each of the callbacks for each different weapon (see code sample below):

 C |  copy code |? 
01
function firstWeapon::fire( %this, %val )  {
02
   // ... more code
03
}
04
function secondWeapon::fireMe( %this, %val ) {
05
   // ... more code
06
}
07
function thirdWeapon::fireMeToo( %this, %val ) {
08
   // ... more code
09
}
10
 
11
// ... more code
12
 
13
moveMap.bindMulti( "Keyboard", "space", firstWeapon, "fire" );
14
moveMap.bindMulti( "Keyboard", "space", secondWeapon, "fireMe" );
15
moveMap.bindMulti( "Keyboard", "space", thirdWeapon, "fireMeToo" );
16

In the above example, three different weapons and their respective callbacks have been mapped to the same key (the spacebar).

I hope you find this useful.

Cheers,

edo

PS - I'm still working on getting a faster site. Sorry for the slowwwwness!
I’m still worried that the response time for this site is less than stellar. So, I decided to seek professional help, or at least professional testing.
After a bit of searching, I came across a site (http://loadimpact.com) that would load test my page(s) for free, simulating up to 50 simultaneous users. This sounded like good deal (free is a great price), and a reasonable start (50 simultaneous users should be about my max for now).

So, I gave it a shot, and the results were… less that super. Actually the results were a little questionable since the test aborted at about 30 users, but for now I can see the following (click images for full-size graphs).
User Load Time

User Load Times


The user load-times dropped steadily from 10 to 30 users. This means I was not yet fully loading my site, so the data is only partially useful. However, the bad news is that for 10 or fewer users, the load times averaged 10.4 seconds. That bites! That alone makes me strongly consider moving to another provider. (We’ll see.)
Home Page Load Times

Home Page Load Times


Next, the ‘Home Page’ (only) load times were better (8.15 second average for10 users), but still not great.
File Load Times

File Load Times


Lastly, I examined the file load times and discovered something useful (although not surprising). Some files have exceptionally long load times. Specifically, one of the PNG files on the home page (inove.png), and the images from the ’sexy bookmark’ feature. Both of these files took an average of ~250ms to load. That kind of load time can add up pretty fast!
That is about all I know so far. I guess the moral of the story is, “get a good (i.e fast) provider and save yourself some heartache.” If anyone has suggestions for providers that can handle high-loads of wordpress sites, let me me know. Meanwhile, I’ll keep digging on my own.

Cheers,
edo