xz: Add a reasonable block cache.
commit7e9ed6311e1ea5f12156f363685972ac246c6426
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 24 Jun 2013 14:32:04 +0000 (24 15:32 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 24 Jun 2013 14:32:04 +0000 (24 15:32 +0100)
tree73dea677976513f6696bea3338a648efe2b06f72
parent2913a0de3163bdd092e8f463be43485e743a49e4
xz: Add a reasonable block cache.

LRU with a default depth of 8.

Random access to a Windows guest gets ~85% hit rate, which is
considerably better than the < 30% hit rate achieved by the previous
effort.
plugins/xz/Makefile.am
plugins/xz/blkcache.c [new file with mode: 0644]
plugins/xz/blkcache.h [new file with mode: 0644]
plugins/xz/nbdkit-xz-plugin.pod
plugins/xz/xz.c