Skip to content

incr.comp.: Don't encode Fingerprint values with leb128. #45875

Closed
@michaelwoerister

Description

@michaelwoerister

Since Fingerprint values have roughly random distribution, most of them will not profit from being stored in a variable-length encoding:

  • encoding to leb128 takes additional time, and
  • in the common case, the leb128 representation of the two 64 bit numbers in a Fingerprint will take up around 160 bits, so we are even wasting space.

We should not do that. UseSpecializedEncodable and UseSpecializedDecodable might be the way to circumvent the standard encoding methods of the opaque::Encoder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: Incremental compilationC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.WG-incr-compWorking group: Incremental compilation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions