performance

Introducing Ratestate

3 minute read

Ratestate is a ratelimiter in the form of a Node.js module that can transmit states of different entities while avoiding transmitting the same state twice, a...

Reverse a Multibyte String in PHP

1 minute read

PHP's strrev is not safe to use on utf-8 strings because it reverses a string one byte at a time. So if a character consists of multiple bytes it cannot be p...

Optimize Your Synology NAS for Downloading

10 minute read

I recently bought a NAS so my data is safe & available, with the benefit of being low power / noise / heat. I've considered Netgear, QNAP, but decided to...

Convert All Tables to InnoDB

2 minute read

Some time ago I was in the situation where I was looking at 200 MyISAM tables screaming to get converted to InnoDB for performance reasons. You probably know...

Redis PHP Introduction

4 minute read

Don't know Redis? Think Memcache, with support for for lists, and disk-based storage. You can use Redis as a database, queue, cache server or all of those c...

CakePHP and Nginx

4 minute read

I still got sites running Apache, but all new projects are launched with Nginx. I don't need many of the features that Apache offers, and the speed gain of N...

Improve MySQL Insert Performance

11 minute read

Sometimes MySQL needs to work hard. I've been working on an import script that fires a lot of INSERTs. Normally our database server handles 1,000 inserts / s...

Enhance PHP Session Management

6 minute read

In PHP, sessions can keep track of authenticated in users. They are an essential building block in today's websites with big communities and a lot of user ac...

Better Performance With mod_deflate

2 minute read

I used to use Dean Edwards Javascript Packer a lot to compress my Javascript sources. Libraries of 100kB could easily shrink to 30kB and that saves load time...

Survive Heavy Traffic With Your Webserver

7 minute read

Recently two of my articles reached the Digg frontpage at the same day. My web server isn't state of the art and it had to handle gigantic amounts of traffic...

Speedup Your Website With Cache_Lite

2 minute read

Every time a request hits your server, PHP has to do a lot of processing, all of your code has to be compiled & executed for every single visit. Even tho...

Create Turbocharged Storage Using tmpfs

3 minute read

Everyone knows that RAM is so much faster than a hard disk. To illustrate, while a current SATA disk has peak transfer rates of 375 MB/s, current RAM can do ...

Install Squid & Apache on 1 Server

3 minute read

Let's say your site is becoming a big success and as a result it's becoming slower and slower. There are several things you do without buying additional hard...