Archive for October, 2009

ByteArray in Flash slide

I found this ByteArray slides by Lee Brimelow, which he presented at the Flash on the beach.

I knew that low level manipulation is so powerful tool, but had very little idea of how I could use them. This slide shows a good start for a beginner like myself.

Peronally, I used bitwise operators to extract red, green, blue color values. However, with the bitwise operators it works for many other things.

One of samples that Lee Brimelow presented was this:

for (var i=0;i<100;i++) {
    if (i&1) {
        // i is odd
    } else {
        // i is even
    }
}

To check whether the number is odd or even and according to Lee, it’s 600% faster than using the modulus operator.

Building Applications for the iPhone with Flash

Next Gen of Flash Authoring tool would allow developers to create native iPhone application.
Read more at the original source

This is a very great news!

Initial Page Load – FE Performance Tuning

1. Introduction

Why is the site performance so important? The poor site performance impacts company’s revenue and user’s engagement.

  • Shopzila: 5 seconds speed up resulted in a 25% increase in page views, 10% increase in revenue, a 50% reduction in hardware, and a 120% increase traffic from Google.
  • Amazon: every 100ms of latency cost them 1% in sales
  • google: extra .5 seconds in search page generation time dropped traffic by 20%
  • a broker could lose $4 million in revenues per millisecond if their electronic trading platform is 5 milliseconds behind the competition.
  • facebook: regardless of site speed, users spend around the same amount of time on facebook, which means if the site is running slowly users are going to be seeing fewer pages in the same amount of time.

So the conclusion is that fast site is better.

Read more