Skip to content

[nll] teach SCC about 'static  #53178

Closed
Closed
@nikomatsakis

Description

@nikomatsakis

Right now, if you have a region R where R: 'static, the SCC computation in NLL is not aware that this means that R = 'static. If we taught it that 'static: R for all R, though, it would put them in the same SCC. This might be a big win for things like html5ever, as it would collapse almost all the regions into one big SCC. (I was doing some profiling on html5ever using the branch from #53177, and it seemed like this would help further drop the overhead.)

Metadata

Metadata

Assignees

Labels

A-NLLArea: Non-lexical lifetimes (NLL)NLL-performantWorking towards the "performance is good" goalT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions