Skip to content

Commit edebe5d

Browse files
committed
Tweaks.
1 parent 8ed3497 commit edebe5d

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,17 @@ public FiveBitBinarySearch(byte[][] compressedData, boolean prefixSearch, byte[]
154154
```
155155

156156
### B+Tree
157-
158157
Coming in the next release.
159158

160-
### Bulk / Batch compression
159+
### Other
160+
Do not forget to check the JavaDocs with further information about each member.
161+
Also check the test directory for additional examples.
161162

163+
### Logging
164+
If you need logging, search for libraries like ZeroLog, ChronicleLog, Log4j 2 Async Loggers, and other similar tools
165+
(we did not test any of those). You will need a fast log library, or it can become a bottleneck.
166+
167+
### Bulk / Batch compression
162168
In some rare cases you need to fetch your data in batches from a remote location or another third party actor.
163169
java-string-compressor provides both, `BulkCompressor` and `ManagedBulkCompressor` specifically for this task.
164170
They help you automatize the process of adding each batch to the correct position in the destination array where the
@@ -169,19 +175,10 @@ the target `byte[][]`. In the other hand, `ManagedBulkCompressor` encapsulates a
169175
from handle array positions and bounds. This is why we recommend `ManagedBulkCompressor` (which uses a `BulkCompressor` internally).
170176

171177
Both bulk compressors loop through the data in parallel by calling `IntStream.range().parallel()`.
172-
173178
```java
174179
byte[][] compressedData = new byte[100000000][]; // Storage for a max of 100 million customers.
175180
// ...
176181
ManagedBulkCompressor managed = new ManagedBulkCompressor(compressor, compressedData);
177182
// ...loop...
178183
managed.compressAndAddAll(batch); // batch is the list of strings to be compressed.
179184
```
180-
181-
### Logging
182-
If you need logging, search for libraries like ZeroLog, ChronicleLog, Log4j 2 Async Loggers, and other similar tools
183-
(we did not test any of those). You will need a fast log library, or it can become a bottleneck.
184-
185-
### Other
186-
Do not forget to check the JavaDocs with further information about each member.
187-
Also check the test directory for additional examples.

0 commit comments

Comments
 (0)