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

Versions 0.1
Dependencies base (>=3 && <5), binary, bytestring, deepseq, happstack-data, happstack-state, parallel [details]
License BSD3
Copyright Copyright (C) 2010-2011, Roman Smrž
Author Roman Smrž
Maintainer Roman Smrž <roman.smrz@seznam.cz>
Stability experimental
Category Data Structures
Home page http://github.com/roman-smrz/swapper/
Source repository head: git clone git://github.com/roman-smrz/swapper.git
Uploaded Mon Aug 29 21:28:27 UTC 2011 by RomanSmrz
Distributions NixOS:0.1
Downloads 273 total (5 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees