On 11/25/07, Tim Starling <tstarling(a)wikimedia.org> wrote:
wfMsg() profiles at ~200us
You're right, it seems to take quite a while (100-200 μs) even if it
doesn't have to go to memcached or the database, at least here on
localhost. Doesn't seem to decrease much with successive executions
either. The practice trades a couple kilobytes of memory for a few
milliseconds' execution time, I guess. Probably not a bad idea, but
local variables are good enough for me.