I agree, but how is "pre-adding a cached value for X" different than "requesting X from the cache"? Either way you get X in the cache. Computing offline seems the same as computing on-line, but in some kind of warm-up state or phase. Which can be concurrent with serving early requests even. You can do everything else you say without a new operation, like selectively pre-caching certain entries.
On Tue, Apr 23, 2013 at 1:14 PM, Gabor Bernat <ber...@primeranks.net> wrote: > CachingSimilarity also allowed to add manually entries, because in that > case this task could be pushed off to an offline system. And yes, you > cannot add all the similarities to the caching object, however based on > history you can select some top (popular) item pairs, and just calculate > for that subset. This could push down the upper request times. Any other > ideas? >