mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 00:47:56 +01:00
Add lz4 dictionary example to RAC related work
This commit is contained in:
1 parent
ecbfe8dbb3
commit
080a60f503
1 file changed
+11
@@ -113,6 +113,17 @@ KiB of history, per seek point. For coarse grained seek points (e.g. once every
|
|||||||
1 MiB), that overhead can be acceptable, but for fine grained seek points (e.g.
|
1 MiB), that overhead can be acceptable, but for fine grained seek points (e.g.
|
||||||
once every 16 KiB), that overhead is prohibitive.
|
once every 16 KiB), that overhead is prohibitive.
|
||||||
|
|
||||||
|
The
|
||||||
|
[`examples/dictionaryRandomAccess.c`](https://github.com/lz4/lz4/blob/master/examples/dictionaryRandomAccess.c)
|
||||||
|
program in the lz4-the-library source code repository is much closer in spirit
|
||||||
|
to RAC, and unlike the zlib example, does not require saving decompressor
|
||||||
|
state: its chunks are independently compressed. It supports dictionaries, but
|
||||||
|
they have to be supplied out-of-band, separate from the compressed file. It is
|
||||||
|
also tied to the LZ4 compression format, hard-codes what RAC would call the
|
||||||
|
chunk DRange size to a fixed value, and the file format is endian-dependent.
|
||||||
|
This is a proof of concept (the implementation's maximum DFileSize is 1MiB),
|
||||||
|
not a production quality file format.
|
||||||
|
|
||||||
RAC differs from the [LevelDB
|
RAC differs from the [LevelDB
|
||||||
Table](https://github.com/google/leveldb/blob/master/doc/table_format.md)
|
Table](https://github.com/google/leveldb/blob/master/doc/table_format.md)
|
||||||
format, even if the LevelDB Table string keys are re-purposed to encode both
|
format, even if the LevelDB Table string keys are re-purposed to encode both
|
||||||
|
|||||||
Reference in new issue
Block a user