Monday, October 29, 2007

Performance == cacheing

Without really needing to, I wrote in genetify.php some code to cache results locally. Once again, inspiration overwhelmed me. My new ideas today were to:

* use the default PHP temp dir in order to avoid extra setup (duh!)

* request a new result set with a random, specifiable frequency (like 0.10) -- simple but effective in reducing requests

* update the cache on disk as a shutdown function -- this means a request appears to complete just as fast as without cacheing!

I can't wait to see how much traffic the whole system can bear now. Because the information being processed by genetify is not necessary for coherent interaction with a site, it can be cached endlessly. This simple inverse relationship between the value of up-to-date information and cacheing means that genetify should be able perform to extremely well.

No comments: