Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde committed Oct 5, 2023
1 parent 0e50932 commit f844e9d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ class ZstdPublisher

private:
int encode_level_{7};

// When compressing many times,
// it is recommended to allocate a context just once,
// and re-use it for each successive compression operation.
// This will make workload friendlier for system's memory.
ZSTD_CCtx * zstd_context_{nullptr};
};
} // namespace zstd_point_cloud_transport
Expand Down

0 comments on commit f844e9d

Please sign in to comment.