Skip to content

Conversation

@thestinger
Copy link
Contributor

This isn't very useful yet, but it does replace most functionality of @T. The Mut<T> type will make it unnecessary to have a GcMut<T> so I haven't included one. Obviously it doesn't work for trait objects but that needs to be figured out for Rc<T> too.

src/libstd/gc.rs Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"A Freeze bound would also work"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right! :)

bors added a commit that referenced this pull request Nov 20, 2013
This isn't very useful yet, but it does replace most functionality of `@T`. The `Mut<T>` type will make it unnecessary to have a `GcMut<T>` so I haven't included one. Obviously it doesn't work for trait objects but that needs to be figured out for `Rc<T>` too.
@bors bors closed this Nov 20, 2013
@bors bors merged commit 543cae9 into rust-lang:master Nov 20, 2013
@thestinger thestinger deleted the gc branch December 7, 2013 00:10
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 24, 2024
Build quine-mc_cluskey with `opt-level=3` in dev builds

While doing some profiling I noticed that debug clippy running on the `clippy_lints` crate spends 35s out of 160s in one specific code path of `nonminimal_bool`, which seemed a bit excessive.

I've found that just enabling optimizations for quine-mc_cluskey (used by nonminimal_bool) cuts down the part that took 35s to 3s

While this doesn't really change anything for users, this helps dogfood a bit as it cuts off about half a minute of runtime (in some of my tests, at least).

Something similar was attempted in rust-lang#10576, however that involved compiling everything in release mode including clippy itself, whereas this only affects a single dependency that's compiled in parallel with something that takes longer so this should hopefully not have a negative impact in any case (and changing clippy doesn't require recompiling that dependency)

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants