I finally got around to doing a proper test of my wfMsg() enhancement.
When using memcached, it's fast enough for some applications (say, low
traffic wikis), but I'm not satisified that it is sufficiently fast for
our site.
On my Celeron 466, it takes about 215 ms to load the messages needed to
display an article. That's not much better than loading from the small
local database (~280 ms). In comparison, doing it the old way took
somewhere around 10-50 ms. I'm not sure of the exact figure, because the
timer is not sufficiently accurate.
Instead I think I might try rolling all the messages into one memcached
object and retrieving that. Failing that, I will try shared memory.
I've also written a simple memcached command line client and improved
the profiling code slightly.
-- Tim Starling.
Show replies by date