Skip to content

Use LZ4 or Snappy instead of Deflate in metadata #6902

Closed
@emberian

Description

@emberian

Currently decompressing the metadata is ~10% (more on slower computers) of the build time of small crates (eg, the tests). Switching to a faster algorithm would bring that down. I think LZ4 is that algorithm:

  • Compatibly licensed implementation (I think. @graydon? It's 2-clause BSD)
  • Almost as good a compression ratio as zlib
  • 5x faster decompression than zlib
  • Much faster than snappy, marginally worse compression.

This has two parts:

  • Add LZ4 wrapper
  • Use it in rustc::metadata

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions