Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upOptimized representations #15714
Comments
larsbergstrom
referenced this issue
Jul 16, 2014
Closed
Tracking issue for Rust feature requests #2854
This comment has been minimized.
This comment has been minimized.
It's not possible to do this because Rust allows taking references to the values inside an |
thestinger
closed this
Sep 16, 2014
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
|
Made a fork off in |
This comment has been minimized.
This comment has been minimized.
|
Since this is an issue that impacts servo I want to continue to track it. |
brson
reopened this
Sep 16, 2014
brson
added
the
A-servo
label
Sep 16, 2014
pnkfelix
added
the
I-wishlist
label
Sep 17, 2014
This comment has been minimized.
This comment has been minimized.
|
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 comment has been minimized.
This comment has been minimized.
|
This issue has been moved to the RFCs repo: rust-lang/rfcs#317 |
larsbergstrom commentedJul 16, 2014
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