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

encode region::Scope using fewer bytes #44809

Merged
merged 5 commits into from
Sep 25, 2017
Merged

Commits on Sep 24, 2017

  1. typeck::check::coercion - roll back failed unsizing type vars

    This wraps unsizing coercions within an additional level of
    `commit_if_ok`, which rolls back type variables if the unsizing coercion
    fails. This prevents a large amount of type-variables from accumulating
    while type-checking a large function, e.g. shaving 2GB off one of the
    4GB peaks in rust-lang#36799.
    arielb1 committed Sep 24, 2017
    Configuration menu
    Copy the full SHA
    9d6b9d6 View commit details
    Browse the repository at this point in the history
  2. sort the list of inference errors by span

    this should produce more error stability
    arielb1 committed Sep 24, 2017
    Configuration menu
    Copy the full SHA
    b6bce56 View commit details
    Browse the repository at this point in the history
  3. move Scope behind an enum

    arielb1 committed Sep 24, 2017
    Configuration menu
    Copy the full SHA
    8214ab1 View commit details
    Browse the repository at this point in the history
  4. encode region::Scope using fewer bytes

    Now that region::Scope is no longer interned, its size is more
    important. This PR encodes region::Scope in 8 bytes instead of 12, which
    should speed up region inference somewhat (perf testing needed) and
    should improve the margins on rust-lang#36799 by 64MB (that's not a lot, I did
    this PR mostly to speed up region inference).
    arielb1 committed Sep 24, 2017
    Configuration menu
    Copy the full SHA
    c10b23e View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2017

  1. fix Debug impls

    arielb1 committed Sep 25, 2017
    Configuration menu
    Copy the full SHA
    7bb0923 View commit details
    Browse the repository at this point in the history