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

This commit is contained in:
J. Nick Koston 2024-01-29 10:25:43 -10:00 committed by GitHub
parent e846157c52
commit d1851fa607
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -5,8 +5,15 @@ import logging
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__)