Skip to content

perf: Eagerly convert literals to consts#68118

Merged
bors merged 4 commits intorust-lang:masterfrom
BenLewis-Seequent:eager_lit_eval
Jan 15, 2020
Merged

perf: Eagerly convert literals to consts#68118
bors merged 4 commits intorust-lang:masterfrom
BenLewis-Seequent:eager_lit_eval

Conversation

@BenLewis-Seequent
Copy link

Previousely even literal constants were being converted to an Unevaluted constant for evaluation later. This seems unecessary as no more information is needed to be able to convert the literal to a mir constant.

Hopefully this will also minimise the performance impact of #67717, as far less constant evaluations are needed.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-const_generics `#![feature(const_generics)]` merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants