apurtell commented on code in PR #5797:
URL: https://github.com/apache/hbase/pull/5797#discussion_r1556053315


##########
hbase-compression/hbase-compression-zstd/src/main/java/org/apache/hadoop/hbase/io/compress/zstd/ZstdCompressor.java:
##########
@@ -170,6 +170,13 @@ public void reset() {
     bytesWritten = 0;
     finish = false;
     finished = false;
+    ctx.setLevel(level);
+    if (dict != null) {
+      ctx.loadDict(dict);
+    } else {
+      // loadDict((byte[]) accepts null to clear the dictionary

Review Comment:
   Did not know this was possible. Nice optimization.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to