The swapper package

[Tags: bsd3, library]

This package provides a wrapper for functors, which allows their data to be automatically swapped to disk and loaded back when necessary. Although interaction with filesystem is required, whole interface (with exception of initialization) is pure and safe as long as no external manipulation with used database files happens while the program is running. Because only actual data, not indices (in Data.Map.Map, for example), are swapped and some accounting information are remembered for each item, this system is suitable mainly for situations where values are considerably larger then indices. Furthermore, creating complete snapshots to a file of this structure is supported; such snapshot can be then loaded, with individual values being read as they are requested. This package uses the Tokyo Cabinet http://fallabs.com/tokyocabinet/ database, which needs to be installed on the system. A prototype of another data structure, SwapMap, is available in the git repository. It is similar to the Data.Map.Map and like Swapper allows transparent swapping of data to disk, but without requiring any accessory function and with the ability to swap both elements and indices. This one is, however, not complete and thus not provided here.


Properties

Version0.1
Dependenciesbase (>=3 && <5), binary, bytestring, deepseq, happstack-data, happstack-state, parallel
LicenseBSD3
CopyrightCopyright (C) 2010-2011, Roman Smrž
AuthorRoman Smrž
MaintainerRoman Smrž <roman.smrz@seznam.cz>
Stabilityexperimental
CategoryData Structures
Home pagehttp://github.com/roman-smrz/swapper/
Source repositoryhead: git clone git://github.com/roman-smrz/swapper.git
Upload dateMon Aug 29 21:28:27 UTC 2011
Uploaded byRomanSmrz
Downloads89 total (12 in last 30 days)

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees