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
fix: Switch to owned types #4103
Merged
Merged
Commits on Aug 22, 2022
-
Impact: - Binary size: 556.6 KiB to 578.4 KiB - build time: 6.4950 us (7% slower) - parse time: 7.7256 us - parse sc time: 8.1580 us (5% faster) Fixes clap-rs#1041 Fixes clap-rs#2150
Configuration menu - View commit details
-
Copy full SHA for 85f541d - Browse repository at this point
Copy the full SHA 85f541dView commit details -
fix: Prefer more usable
&str
for reflectionThe downside is we can't skip allocations with - `ValueEnum` default values - Vaid subcommands Otherwise, this is a big ergonomic win.
Configuration menu - View commit details
-
Copy full SHA for 1bbf07e - Browse repository at this point
Copy the full SHA 1bbf07eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 049d679 - Browse repository at this point
Copy the full SHA 049d679View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b9e576 - Browse repository at this point
Copy the full SHA 9b9e576View commit details -
perf: Switch Str to use String
Impact - Binary size: 556.6 KiB to 578.4 KiB to 574.6 KiB - build time: 9.4581 us - parse time: 13.055 us - parse sc time: 13.384 us
Configuration menu - View commit details
-
Copy full SHA for 931d0e1 - Browse repository at this point
Copy the full SHA 931d0e1View commit details -
perf: Switch Str to use Box<Str>
Impact: - Binary size: 556.6 KiB to 578.4 KiB 565.3 KiB - build time: 9.6393 us - parse time: 12.616 us - parse sc time: 12.745 us
Configuration menu - View commit details
-
Copy full SHA for 71752f5 - Browse repository at this point
Copy the full SHA 71752f5View commit details -
perf: Let users choose Str implementation
The binary size and performance difference is enough to make it configurable. Code size: - default: 565.7 KiB - perf: 578.5 KiB Build time: - default: 9.1706 us - perf: 7.0479 us Parse time: - default: 12.673 us - perf: 8.1708 us Parse with subcommand time: - default: 12.112 us - perf: 7.9874 us
Configuration menu - View commit details
-
Copy full SHA for fc499ac - Browse repository at this point
Copy the full SHA fc499acView commit details -
Configuration menu - View commit details
-
Copy full SHA for c9d883a - Browse repository at this point
Copy the full SHA c9d883aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 907941a - Browse repository at this point
Copy the full SHA 907941aView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.