]> mj.ucw.cz Git - libucw.git/commit
Implemented swapping in/out buckets.
authorMartin Mares <mj@ucw.cz>
Fri, 2 Feb 2007 21:28:43 +0000 (22:28 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 2 Feb 2007 21:28:43 +0000 (22:28 +0100)
commitc9bb8b99608f4442d493081b616f6707043ddb6c
tree6040449415ebc4df5aa9352d7fe147e05f6e220d
parentc15baf7b8cf0dc6a07b3c57ad346aee68ac6f19f
Implemented swapping in/out buckets.

In some sorting methods, we want to use lots of buckets, but avoid
keeping all the files open and their buffers allocated. The bucket
machinery is now able to swap out a bucket (close its fastbuf) and
then transparently swap it in as needed.
lib/sorter/common.h
lib/sorter/govern.c
lib/sorter/s-internal.h