Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Significantly speed up creating backups with isal via zlib-fast #4843

Merged
merged 3 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ setuptools==69.0.3
voluptuous==0.14.1
dbus-fast==2.21.1
typing_extensions==4.9.0
zlib-fast==0.2.0
11 changes: 9 additions & 2 deletions supervisor/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@
from pathlib import Path
import sys

from supervisor import bootstrap
from supervisor.utils.logging import activate_log_queue_handler
import zlib_fast

# Enable fast zlib before importing supervisor
zlib_fast.enable()

from supervisor import bootstrap # pylint: disable=wrong-import-position # noqa: E402
from supervisor.utils.logging import ( # pylint: disable=wrong-import-position # noqa: E402
activate_log_queue_handler,
)

_LOGGER: logging.Logger = logging.getLogger(__name__)

Expand Down
Loading