-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Clean up and streamline snapshot data structures #55906
Clean up and streamline snapshot data structures #55906
Commits on Nov 25, 2018
-
This version has some significant speed-ups relating to snapshotting.
Configuration menu - View commit details
-
Copy full SHA for 1e34dfc - Browse repository at this point
Copy the full SHA 1e34dfcView commit details -
Because it's as useless as its name suggests. This commit also renames `UndoLog::Noop` as `UndoLog::Purged`, because (a) that's a more descriptive name and (b) it matches the name used in similar code in `librustc/infer/region_constraints/mod.rs`.
Configuration menu - View commit details
-
Copy full SHA for 9847b5c - Browse repository at this point
Copy the full SHA 9847b5cView commit details -
Rename
UndoLogEntry
asUndoLog
.So that it matches `librustc_data_structures/snapshot_map/mod.rs` and the `ena` crate.
Configuration menu - View commit details
-
Copy full SHA for c86bbd4 - Browse repository at this point
Copy the full SHA c86bbd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fe09a6 - Browse repository at this point
Copy the full SHA 7fe09a6View commit details -
Make
commit
androllback_to
methods take ownership of the snapshots.Because they shouldn't be reused. This provides consistency with the `ena` crate.
Configuration menu - View commit details
-
Copy full SHA for f5624e4 - Browse repository at this point
Copy the full SHA f5624e4View commit details -
Introduce
in_snapshot
andassert_open_snapshot
methods.This makes the two snapshot implementations more consistent with each other and with crate `ena`.
Configuration menu - View commit details
-
Copy full SHA for f23c969 - Browse repository at this point
Copy the full SHA f23c969View commit details -
Remove
OpenSnapshot
andCommittedSnapshot
markers from `SnapshotM……ap`. They're not strictly necessary, and they result in the `Vec` being allocated even for the trivial (and common) case where a `start_snapshot` is immediately followed by a `commit` or `rollback_to`.
Configuration menu - View commit details
-
Copy full SHA for 2d68fa0 - Browse repository at this point
Copy the full SHA 2d68fa0View commit details -
Remove
OpenSnapshot
andCommittedSnapshot
markers from `RegionCon……straintCollector`. They're not strictly necessary, and they result in the `Vec` being allocated even for the trivial (and common) case where a `start_snapshot` is immediately followed by a `commit` or `rollback_to`. The commit also removes a now-unnecessary argument of `pop_placeholders()`.
Configuration menu - View commit details
-
Copy full SHA for 94967ae - Browse repository at this point
Copy the full SHA 94967aeView commit details