Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
Use maximum compression with Zstd
Browse files Browse the repository at this point in the history
We only write replays once and store them for all eternity. Compression ratio can be improved by >15% by moving to level 19.
  • Loading branch information
Brutus5000 authored Mar 2, 2021
1 parent 3e21aa5 commit 3eba328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion replayserver/bookkeeping/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, paths, database):
self._database = database
# TODO - consider multi-threaded compression if we end up needing more
# performance.
self._compressor = zstd.ZstdCompressor(level=10,
self._compressor = zstd.ZstdCompressor(level=19,
write_checksum=True)
self._compressor_lock = threading.Lock()

Expand Down

0 comments on commit 3eba328

Please sign in to comment.