Uh oh!
There was an error while loading. Please reload this page.
incr.comp.: Cache type_of and some other queries. - #47455
Conversation
nikomatsakis
commented
Jan 16, 2018
@bors r+ |
bors
commented
Jan 16, 2018
📌 Commit b726204 has been approved by |
nikomatsakis
commented
Jan 16, 2018
say a bit more about this? is this a bug to be closed? |
michaelwoerister
commented
Jan 16, 2018
The incr.comp. cache serializer does not accept raw DefIndex values because it cannot make sense of them without the corresponding CrateNum. I plan to fix this by creating a special data structure with custom serialization for this lookup table (or I'll open an issue with mentoring instruction). It's not a really bug though because we have an assertion against accidentally running into trouble there. |
…r=nikomatsakis incr.comp.: Cache type_of and some other queries. Cache some more queries that show up high during profiling. Does not include `generics_of` yet (which profiling shows to also take up quite some time) because the `type_param_to_index` field in there uses raw `DefIndex` values from other crates. r? @nikomatsakis
michaelwoerister
commented
Jan 17, 2018
@nikomatsakis, I pushed two more commits to also cache the @kennytm, I hope this doesn't mess with your rollup. |
nikomatsakis
commented
Jan 17, 2018
well, the "bug" is probably just not using |
michaelwoerister
commented
Jan 18, 2018
I switched it to regular |
nikomatsakis
commented
Jan 19, 2018
@bors r+ |
bors
commented
Jan 19, 2018
📌 Commit 0f13dbd has been approved by |
bors
commented
Jan 23, 2018
☔ The latest upstream changes (presumably #47373) made this pull request unmergeable. Please resolve the merge conflicts. |
0f13dbd to
0a4f347Comparenikomatsakis
commented
Jan 23, 2018
@bors r+ (@michaelwoerister -- did you forget this?) |
bors
commented
Jan 23, 2018
📌 Commit 0a4f347 has been approved by |
Cache some more queries that show up high during profiling. Does not include
generics_ofyet (which profiling shows to also take up quite some time) because thetype_param_to_indexfield in there uses rawDefIndexvalues from other crates.r? @nikomatsakis