Skip to content

Special-case literals in parse_bottom_expr.#61612

Merged
bors merged 1 commit intorust-lang:masterfrom
nnethercote:improve-parse_bottom_expr
Jun 12, 2019
Merged

Special-case literals in parse_bottom_expr.#61612
bors merged 1 commit intorust-lang:masterfrom
nnethercote:improve-parse_bottom_expr

Conversation

@nnethercote
Copy link
Contributor

This makes parsing faster, particularly for code with large constants,
for two reasons:

  • it skips all the keyword comparisons for literals;
  • it skips the allocation done by the mk_expr call in
    parse_literal_maybe_minus.

r? @petrochenkov

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

Labels

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.

5 participants