-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Optimized representations #15714
Comments
It's not possible to do this because Rust allows taking references to the values inside an |
Since this would be a language change rather than an optimization in the compiler, it needs to go through the RFC process. I really don't know how it would fit into the |
Made a fork off in |
Since this is an issue that impacts servo I want to continue to track it. |
It would be backwards compatible and would need to go through an RFC so I don't really think it belongs on the issue tracker. The bug tracker is filled with non-actionable issues and that means it's a much less useful for tracking bugs and actionable feature requests. This isn't a good place to hold open discussions about stuff. |
This issue has been moved to the RFCs repo: rust-lang/rfcs#317 |
minor: Prepare for rust-bors This [only works](https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/testing.20new.20bors.20implementation/near/395026488) for try builds at the moment, unfortunately.
A key worry in a web browser is the size of data. We'd like to know that e.g. an enum with a single pointer constructor and 5 nullary constructors can still fit into a single machine word on 64-bit architectures. All of these optimizations need to work with custom smart pointer types, but we also need to be able to disable them for some smart pointers, e.g. pointers that are tracked by an external GC.
CC: @zwarich @pcwalton
The text was updated successfully, but these errors were encountered: