The bytestring-delta package
Compute a patch between two ByteStrings which can later be applied to the first to produce the second. This can be used to save bandwidth and disk space when many strings differing by a small number of bytes need to be transmitted or stored.
The underlying implementation is written in C, and can also be found at http://ccodearchive.net/info/bdelta.html.
Currently, a patch does not save any space when two strings differ by more than 1000 bytes. This arbitrary limit serves to keep applications from spiking in memory and CPU usage, as the algorithm uses quadratic space and time with respect to the length of the patch. A better algorithm may be introduced in a future version of bytestring-delta.
Properties
| Versions | 0.1, 0.1.0.1 |
|---|---|
| Dependencies | base (4.*), bytestring |
| License | MIT |
| Copyright | Copyright (c) Joseph Adams 2011 |
| Author | Joey Adams |
| Maintainer | joeyadams3.14159@gmail.com |
| Category | Data |
| Home page | http://github.com/joeyadams/haskell-bytestring-delta |
| Source repository | git clone git://github.com/joeyadams/haskell-bytestring-delta.git |
| Upload date | Wed Feb 22 01:42:11 UTC 2012 |
| Uploaded by | JoeyAdams |
| Built on | ghc-7.4 |
Modules
- Data
- ByteString
Downloads
- bytestring-delta-0.1.0.1.tar.gz (Cabal source package)
- package description (included in the package)