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

perf!(lex): Build faster by removing os_str_bytes #4794

Merged
merged 1 commit into from Mar 27, 2023
Merged

Commits on Mar 25, 2023

  1. perf!(lex): Build faster by removing os_str_bytes

    We are doing direct transmutes between `OsStr` and `[u8]`.
    rust-lang/rust#95290 would make this natively
    supported but I got tired of waitin for it.
    
    This only saves about 1/4s off of `cargo build`.
    
    This took 2.9 KiB off of `cargo bloat --release --example git`
    epage committed Mar 25, 2023
    Configuration menu
    Copy the full SHA
    6419a0d View commit details
    Browse the repository at this point in the history