Skip to content

Commit 234cd55

Browse files
authored
JAVA-2074: Document preference for LZ4 over Snappy (apache#1158)
1 parent 3456ac0 commit 234cd55

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

changelog/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
### 3.7.0 (In progress)
44

5-
- [improvement] JAVA-2025: Include exception message in Abstract*Codec.accepts(null).
65
- [improvement] JAVA-2025: Include exception message in Abstract\*Codec.accepts(null).
76
- [improvement] JAVA-1980: Use covariant return types in RemoteEndpointAwareJdkSSLOptions.Builder methods.
87
- [documentation] JAVA-2062: Document frozen collection preference with Mapper.
98
- [bug] JAVA-2071: Fix NPE in ArrayBackedRow.toString().
109
- [bug] JAVA-2070: Call onRemove instead of onDown when rack and/or DC information changes for a host.
1110
- [improvement] JAVA-1256: Log parameters of BuiltStatement in QueryLogger.
11+
- [documentation] JAVA-2074: Document preference for LZ4 over Snappy.
1212

1313

1414
### 3.6.0

manual/compression/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ will likely be beneficial when you have larger payloads.
1212

1313
Two algorithms are available:
1414
[LZ4](https://github.com/jpountz/lz4-java) and
15-
[Snappy](https://code.google.com/p/snappy/).
15+
[Snappy](https://code.google.com/p/snappy/). The LZ4 implementation is a good
16+
first choice; it offers fallback implementations in case native libraries fail
17+
to load and
18+
[benchmarks](http://java-performance.info/performance-general-compression/)
19+
suggest that it offers better performance and compression ratios over Snappy.
1620
Both rely on third-party libraries, declared by the driver as *optional*
17-
dependencies. So If you use a build tool like Maven, you'll need to
18-
declare an explicit dependency to pull the appropriate library in your
19-
application's classpath. Then you configure compression at driver
20-
startup.
21+
dependencies. So if you use a build tool like Maven, you'll need to declare an
22+
explicit dependency to pull the appropriate library in your application's
23+
classpath. Then you configure compression at driver startup.
2124

2225
### LZ4
2326

0 commit comments

Comments
 (0)