Brion Vibber wrote:
I've consolidated some of the watchlist access
code into WatchedItem.php
and added memcached support for it. This should reduce db hits on
logged-in page views; it had been checking the watchlist table (twice!)
per logged-in page render.
Good stuff. Watchlist queries were common features in the slow query
log. BTW as I discovered with wfMsg(), querying memcached on a local
machine takes on the order of a millisecond (on my poor old 66 MHz FSB
Celeron). So if you need to access thousands of entries in the course of
a request, it's probably better to consolidate the entries into larger
chunks.
(Also a note: main development is currently going on
in the stable
branch and is focused on speed, security, and bug fixes, not features. A
lot of fixes will need to be forward-ported to the dev branch at some
point.)
I've been working on the dev branch. When do you next want to merge the
two branches? I'm not going to port my parser optimisation to stable, so
if we want that, we'll have to do a proper merge.
-- Tim Starling.