Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid allocating when parsing \u{...} literals. #50052

Merged
merged 1 commit into from
Apr 20, 2018

Commits on Apr 18, 2018

  1. Avoid allocating when parsing \u{...} literals.

    `char_lit` uses an allocation in order to ignore '_' chars in \u{...}
    literals. This patch changes it to not do that by processing the chars
    more directly.
    
    This improves various rustc-perf benchmark measurements by up to 6%,
    particularly regex, futures, clap, coercions, hyper, and encoding.
    nnethercote committed Apr 18, 2018
    Configuration menu
    Copy the full SHA
    9f14502 View commit details
    Browse the repository at this point in the history