Repository navigation
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Create `LocalDefIndex` for metadata encoding
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (2fa5a47): comparison URL. Overall result: ❌ regressions - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (secondary -0.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -1.6%, secondary 3.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 488.984s -> 488.935s (-0.01%) |
3b195e0 to
2b5f330
Compare
This comment has been minimized.
This comment has been minimized.
2b5f330 to
012aa52
Compare
…ata, r=petrochenkov Allow using different index types when reading and writing to tables Make tables of metadata two-sided: one can write with one index type and read with another, as long as both those types are indexes. That will be used in rust-lang#163321 when we will have `LocalDefIndex` or similar type. r? @petrochenkov
…ata, r=petrochenkov Allow using different index types when reading and writing to tables Make tables of metadata two-sided: one can write with one index type and read with another, as long as both those types are indexes. That will be used in rust-lang#163321 when we will have `LocalDefIndex` or similar type. r? @petrochenkov
…ata, r=petrochenkov Allow using different index types when reading and writing to tables Make tables of metadata two-sided: one can write with one index type and read with another, as long as both those types are indexes. That will be used in rust-lang#163321 when we will have `LocalDefIndex` or similar type. r? @petrochenkov
…ata, r=petrochenkov Allow using different index types when reading and writing to tables Make tables of metadata two-sided: one can write with one index type and read with another, as long as both those types are indexes. That will be used in rust-lang#163321 when we will have `LocalDefIndex` or similar type. r? @petrochenkov
This comment has been minimized.
This comment has been minimized.
d3319be to
68c2396
Compare
68c2396 to
52b92f8
Compare
This comment has been minimized.
This comment has been minimized.
|
After some experiments with |
LocalDefIndex for metadata encodingLocalDefId as an index in metadata encoding
|
This pull request was unapproved. |
|
Removed default |
There was a problem hiding this comment.
@bors delegate+
r=me,petrochenkov with changes applied and commits squashed
|
✌️ @aerooneqq, you can now approve this pull request! If @oli-obk told you to " |
|
Reminder, once the PR becomes ready for a review, use |
|
@bors squash msg="Use LocalDefId instead of DefIndex in metadata encoding" |
This comment has been minimized.
This comment has been minimized.
|
🔨 3 commits were squashed into b92cb3e. |
a32d487 to
b92cb3e
Compare
|
@bors r=oli-obk,petrochenkov |
This comment has been minimized.
This comment has been minimized.
…nkov Use `LocalDefId` as an index in metadata encoding The goal of this PR to eliminate encoding of a raw `DefIndex`, instead we should encode something (`LocalDefId`) that certainly indicates that index belongs to the local crate. The implementation of `DefIndex` encoding should always panic to prevent accidental remappings of non-local `DefIndex`es in #162809. So the plan is as follows: - Use `LocalDefId` as a writing index in tables for metadata encoding, use `LocalDefId` instead of `DefIndex` everywhere, specialize encode/decode methods to correctly process it, - Replace implementation of `encode_def_index` in `EncodeContext` with panic, so we never remap and encode def index, - Make tables' keys two-sided: we can read and write using different index types, in this case we will write using `LocalDefId` and read using `DefIndex` (done in #163447). Blocked by #162900. r? @petrochenkov
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
💔 Test for fcbcce8 failed: CI. Failed job:
|
|
@bors retry |
|
⌛ Testing commit b92cb3e with merge 65efa19... Workflow: https://github.com/rust-lang/rust/actions/runs/37763351175 |
…nkov Use `LocalDefId` as an index in metadata encoding The goal of this PR to eliminate encoding of a raw `DefIndex`, instead we should encode something (`LocalDefId`) that certainly indicates that index belongs to the local crate. The implementation of `DefIndex` encoding should always panic to prevent accidental remappings of non-local `DefIndex`es in #162809. So the plan is as follows: - Use `LocalDefId` as a writing index in tables for metadata encoding, use `LocalDefId` instead of `DefIndex` everywhere, specialize encode/decode methods to correctly process it, - Replace implementation of `encode_def_index` in `EncodeContext` with panic, so we never remap and encode def index, - Make tables' keys two-sided: we can read and write using different index types, in this case we will write using `LocalDefId` and read using `DefIndex` (done in #163447). Blocked by #162900. r? @petrochenkov
View all comments
The goal of this PR to eliminate encoding of a raw
DefIndex, instead we should encode something (LocalDefId) that certainly indicates that index belongs to the local crate. The implementation ofDefIndexencoding should always panic to prevent accidental remappings of non-localDefIndexes in #162809.So the plan is as follows:
LocalDefIdas a writing index in tables for metadata encoding, useLocalDefIdinstead ofDefIndexeverywhere, specialize encode/decode methods to correctly process it,encode_def_indexinEncodeContextwith panic, so we never remap and encode def index,LocalDefIdand read usingDefIndex(done in Allow using different index types when reading and writing to tables #163447).Blocked by #162900.
r? @petrochenkov