iFixit/Matryoshka — pull request #8 by danielbeardsley (2014-11-10 19:19:46+00:00)
Title: Local: add optimization for when localMissing = []

Previously, even if the missing array was empty, we'd still call
getMultiple([]) on the backend and it would trickle down to who knows
how far down the call stack before being short-circuited.

After investigation, it turns out the php memcache library doesn't
optimize out the ->get([]) special case and still makes a network round
trip. Because of this I've added a 'if (empty) return []' to each
implementation of getMultiple() as well just in case the caller is
dumb.