/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
A surprising enum size optimization in the Rust compiler
(jpfennell.com)
146 points
returningfory2
| 1 comments |
07 Apr 25 22:30 UTC
|
HN request time: 0.202s
|
source
Show context
subarctic
◴[
10 Apr 25 18:01 UTC
]
No.
43646490
[source]
▶
>>43616649 (OP)
#
When was this implemented? I remember when people used to have to manually flatten nested enums in order to save space
replies(1):
>>43646704
#
1.
returningfory2
◴[
10 Apr 25 18:22 UTC
]
No.
43646704
[source]
▶
>>43646490
#
Many years ago I think, here:
https://github.com/rust-lang/rust/issues/46213
. (Found this via
https://lobste.rs/s/w3jjb2/surprising_enum_size_optimization...
)
ID:
GO
↑