Lazy opening of cyrus.cache file
brong at fastmail.fm
Mon Mar 23 09:31:59 EDT 2009
Only very lightly tested... but hey.
Don't open the cyrus.cache file unless you need to,
handy for those people running with small fast meta
partitions and slow big partitions with the
cyrus.cache on them :)
It's probably not perfectly polished either yet - I
really want to eliminate the bloody globals in index.c,
but that's a bit further than I wanted to go with this
This is actually two separate patches on github - the
first abstracts away the cache lookups, and is for
crash-safety. The second takes advantage of the
abstraction to delay opening the cache file until
it first gets requested. Once needed, it stays open
until the mailbox is closed.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 63442 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20090324/2d4fd966/attachment-0001.bin
More information about the Cyrus-devel