<<< Date Index >>>     <<< Thread Index >>>

Re: fadvise WILLNEED for tokyocabinet header cache



Hi,

* Kyle Wheeler wrote:
> On Tuesday, June 23 at 08:21 PM, quoth Rocco Rutte:

> >The cache is updateable for some time now (weeks I think).
> 
> That got pushed? Hmmm. Maybe I'm confused then. I still have this in
> my mh.c; is it out-of-date?
> 
>     #if USE_HCACHE
>         if (ctx->magic == M_MAILDIR)
>             mutt_hcache_store (hc, ctx->hdrs[i]->path + 3,
>             ctx->hdrs[i], 0, &maildir_hcache_keylen);
>         else if (ctx->magic == M_MH)
>             mutt_hcache_store (hc, ctx->hdrs[i]->path, ctx->hdrs[i],
>             0, strlen);
>     #endif

Yes. For Maildir+MH+IMAP in 2fe6f875c7ae and for POP in
9fa4a3e74355. Though the code looks a bit confusing, maybe we should
have mutt_hcache_update() or something #define'd to mutt_hcache_store().

Rocco