Messages in this thread | | | Date | Mon, 5 Sep 2011 11:22:27 -0700 | From | Mark Brown <> | Subject | Re: [PATCH 2/8] regmap: Add the indexed cache support |
| |
On Mon, Sep 05, 2011 at 12:14:26PM +0200, Lars-Peter Clausen wrote:
> In my opinion we should work towards having rbtree as the only cache type, but > with optional lzo compression on the rbtree node blocks.
If we are going to do something like that we should probably just go by block size to decide if we should do the compression and do the thing with keeping the most recently used LZO block (or perhaps a few) uncompressed in RAM for speed. Probably also look at the compression we get when we decide to compress and not bother doing the compression if it's a small saving, though we will have burned CPU.
| |