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 upImprove OwnedSlice and use it in HIR #30095
Conversation
rust-highfive
assigned
nrc
Nov 28, 2015
This comment has been minimized.
This comment has been minimized.
|
Why aren't we using |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Yep, |
This comment has been minimized.
This comment has been minimized.
|
Updated. |
This comment has been minimized.
This comment has been minimized.
|
For reference, the RawVec type enables |
This comment has been minimized.
This comment has been minimized.
|
|
petrochenkov
force-pushed the
petrochenkov:owned
branch
from
ee95763
to
1aa472d
Dec 5, 2015
This comment has been minimized.
This comment has been minimized.
|
Rebased. |
This comment has been minimized.
This comment has been minimized.
|
|
petrochenkov
force-pushed the
petrochenkov:owned
branch
from
1aa472d
to
98ce21f
Dec 6, 2015
This comment has been minimized.
This comment has been minimized.
|
Rebased. |
This comment has been minimized.
This comment has been minimized.
|
Still failing a test and looks genuine |
This comment has been minimized.
This comment has been minimized.
|
I think the end result would be less confusing if you don't use the name |
This comment has been minimized.
This comment has been minimized.
|
r+ with the above two comments addressed |
This comment has been minimized.
This comment has been minimized.
The idea was to 1) Keep the code changes small (so, the name
Hmm, it certainly doesn't segfault on my machine, I'll try to rerun on something else. |
This comment has been minimized.
This comment has been minimized.
there is already code churn from |
This comment has been minimized.
This comment has been minimized.
|
I've renamed |
This comment has been minimized.
This comment has been minimized.
|
Some investigation results: First of all, I don't know if this PR introduces this codegen bug, or just uncovers some existing one. |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
This sounds like a great case for RR |
petrochenkov
force-pushed the
petrochenkov:owned
branch
from
9514ce3
to
3068d80
Dec 8, 2015
This comment has been minimized.
This comment has been minimized.
|
|
petrochenkov
force-pushed the
petrochenkov:owned
branch
from
3068d80
to
0dcb5cc
Dec 15, 2015
This comment has been minimized.
This comment has been minimized.
|
|
petrochenkov
force-pushed the
petrochenkov:owned
branch
from
0dcb5cc
to
e46db1d
Dec 16, 2015
petrochenkov
referenced this pull request
Dec 16, 2015
Merged
libsyntax: Merge OwnedSlice into ptr::P #30420
This comment has been minimized.
This comment has been minimized.
|
|
petrochenkov commentedNov 28, 2015
Most of the changes are to support switching between vector-like containers in HIR and beefing up
OwnedSlice's interface.The actual change from
VectoOwnedSliceis one line, and it can be changed back if necessary.Memory consumption for librustc, libcore and libstd is below under the spoilers - the changes are small, but consistent.
libcore is the most noticeable, 5.7% less memory immediately after lowering to HIR, 4% less memory during type checking.
Before:
After:
r? @nrc or @eddyb