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

Conversation

epage
Copy link
Member

@epage epage commented Mar 27, 2023

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 on Linux

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 epage force-pushed the osstr branch 2 times, most recently from 40e7cc6 to 6419a0d Compare March 27, 2023 21:07
@epage epage merged commit 627a94f into clap-rs:master Mar 27, 2023
@epage epage deleted the osstr branch March 27, 2023 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant