Skip to content

Support compression in sync push/pull #502

@yume-chan

Description

@yume-chan

Android 11 added support for Brotli compression in sync push/pull, Android 12 further added lz4 and zstd support. Using compression can result in up to 2x transfer speed.

Algorithms:

From https://android-review.googlesource.com/c/platform/system/core/+/1276917, pull speed in MB/s:

           none    brotli    lz4
USB 3.0     120       110    190
USB 2.0      38        75     63

No pure-JS implementations of all three algorithms were found on NPM. Need to create them ourselves.

Android 12 also added a dry-run flag in push/pull for testing. Shouldn't be useful in real situations: https://android-review.googlesource.com/c/platform/system/core/+/1276918

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions