You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ This project attempts to support all of the features enumerated in the [LZ4 Fram
26
26
-[Sparse](./pkg/sparse) write support
27
27
- Random read access (see [caveats](#random-read-access))
28
28
29
-
29
+
While the primary purpose of plz4 is to support parallel processing, the raw block API's have also been supported for cases where the payloads are very small and do not benefit from LZ4 Framing.
30
30
31
31
## Design
32
32
@@ -57,6 +57,11 @@ There is another LZ4 Frame feature that is problematic at scale. By default, pl
57
57
58
58
Another advantage of independent blocks is the potential to support random read access. This is possible because each block can be independently decompressed. To support this, plz4 provides an optional progress callback that emits both the source offset and corresponding block offset during compression. An implementation can use this information to build lookup tables that can later be used to skip ahead during decompression to a known block offset. plz4 provides the 'WithReadOffset' option on the NewReader API to skip ahead and start decompression at a known block offset.
59
59
60
+
### CGO
61
+
62
+
63
+
This package uses CGO to call the canonical LZ4 library which is written in C. There may be be cases where CGO is not desired, and in those cases the package also supports building with the environment variable "CGO_ENABLED=0". In general, the library runs a bit slower in that mode and not all features are available.
0 commit comments